diff --git a/Onequestionmark.hx b/Onequestionmark.hx index 94e3155..d31972f 100644 --- a/Onequestionmark.hx +++ b/Onequestionmark.hx @@ -58,7 +58,7 @@ class Onequestionmark { Bot = new DiscordClient(settings.token, [3276799], settings.debug); Bot.onReady = onReady; Bot.onMessageCreate = onMessageCreate; - botInfo = Endpoints.getCurrentUser(); + Bot.connect(); MainLoop.add(motd); } @@ -66,6 +66,7 @@ class Onequestionmark { public static function onReady() { Sys.println('[${timestamp()}] Bot is online'); //Endpoints.sendMessage(settings.devchannel, {content:"onequestionmark-chat alpha test is now running"}, null, false); + botInfo = Endpoints.getCurrentUser(); } public static function onMessageCreate(m:Message) {