get rid of some stuff from the example bot

master
BodgeMaster 2022-02-20 19:47:48 +01:00
parent 02649a0365
commit 5628b3847c
1 changed files with 1 additions and 5 deletions

View File

@ -12,7 +12,6 @@ public class Main {
public static void main(String[] args) {
String startupTime = String.format("%1$tY-%1$tm-%1$td %1$tI:%1$tM:%1$tS%1$tp UTC%1$tz", new Date());
// Insert your bot's token here
String token = args[0];
CheckDeploy check = new CheckDeploy(7500, "/var/www/deployment/Hacky-Quizbot/id.txt");
@ -23,16 +22,13 @@ public class Main {
//Trivia management
Member member = new Member(api);
// Add a listener which answers with "Pong!" if someone writes "!ping"
// small status command
api.addMessageCreateListener(event -> {
if (event.getMessageContent().equalsIgnoreCase("!ping")) {
event.getChannel().sendMessage("Pong!\nHacky the quiz bot has been running since "+startupTime);
}
});
// Print the invite url of your bot
System.out.println("You can invite the bot by using the following url: " + api.createBotInvite());
}
//Deploy check thread