From 5628b3847ccca85d0f990c0764807bee0cf7a02d Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 20 Feb 2022 19:47:48 +0100 Subject: [PATCH] get rid of some stuff from the example bot --- src/main/java/linux/general/hackyquizbot/Main.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/linux/general/hackyquizbot/Main.java b/src/main/java/linux/general/hackyquizbot/Main.java index 8dbec63..beeb910 100644 --- a/src/main/java/linux/general/hackyquizbot/Main.java +++ b/src/main/java/linux/general/hackyquizbot/Main.java @@ -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