Connection change in HxDiscord update #5e30606

This commit is contained in:
Izwzyzx 2023-09-02 17:04:48 -05:00
parent ad064a7d2c
commit d8cbaa4e16

View File

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