From d8cbaa4e16c5549a12ca621142343741b1c7ae69 Mon Sep 17 00:00:00 2001 From: Izwzyzx <184772711+Izwzyzx@users.noreply.github.com> Date: Sat, 2 Sep 2023 17:04:48 -0500 Subject: [PATCH] Connection change in HxDiscord update #5e30606 --- Onequestionmark.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {