Connection change in HxDiscord update #5e30606
This commit is contained in:
parent
ad064a7d2c
commit
d8cbaa4e16
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user