Skip to content

Feature1/aarit jayaswal#68

Open
AaritJayaswal wants to merge 4 commits intoLEAGUE-Level6:developmentfrom
AaritJayaswal:feature1/AaritJayaswal
Open

Feature1/aarit jayaswal#68
AaritJayaswal wants to merge 4 commits intoLEAGUE-Level6:developmentfrom
AaritJayaswal:feature1/AaritJayaswal

Conversation

@AaritJayaswal
Copy link

No description provided.

@clarkkent4027
Copy link

Please add your unit tests :)

@clarkkent4027
Copy link

[https://github.com//pull/72]

There are new changes that need to be made for this this to work.
Contact @NicholasWalton if you need help.


//System.out.println("hello"+ token);
api = new DiscordApiBuilder().setToken(token).addIntents(Intent.MESSAGE_CONTENT).login().join();
//api = new DiscordApiBuilder().setToken(token).setAllIntents().login().join();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//api = new DiscordApiBuilder().setToken(token).setAllIntents().login().join();

api = new DiscordApiBuilder().setToken(token).addIntents(Intent.MESSAGE_CONTENT).login().join();
//api = new DiscordApiBuilder().setToken(token).setAllIntents().login().join();

//System.out.println("hello");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//System.out.println("hello");

public class Trivia extends Feature {

public final String COMMAND = "!trivia";
public boolean gameStarted = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public boolean gameStarted = false;


event.getChannel().sendMessage("Wrong, the correct answer is " + answer);
//set numberToGuess back to 0
gameStarted = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gameStarted = false;

//System.out.println("hello");
//Print the URL to invite the bot
if (printInvite) {
System.out.println("To authorize your bot, send your teacher this link: " + api.createBotInvite()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
System.out.println("To authorize your bot, send your teacher this link: " + api.createBotInvite()

public void handle(MessageCreateEvent event) {
String messageContent = event.getMessageContent();

System.out.println(messageContent);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
System.out.println(messageContent);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants