aboutsummaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2020-03-27 17:14:08 -0500
committerMax Isom <[email protected]>2020-03-27 17:14:08 -0500
commit7703506aae30e56ca668d078f72cc5e8abe843d8 (patch)
treecfc4d2775112693baa7a5fca51bc52ee376e7b19 /src/bot.ts
parenta2950ed722d5ed1f0e3d31922d796836ec1b18da (diff)
downloadmuse-7703506aae30e56ca668d078f72cc5e8abe843d8.tar.xz
muse-7703506aae30e56ca668d078f72cc5e8abe843d8.zip
Bump dependencies and add typing event handler
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 296c06b..d6874b7 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -7,6 +7,7 @@ import Command from './commands';
import debug from './utils/debug';
import NaturalLanguage from './services/natural-language-commands';
import handleGuildCreate from './events/guild-create';
+import handleTypingStart from './events/handle-typing-start';
import handleVoiceStateUpdate from './events/voice-state-update';
import errorMsg from './utils/error-msg';
import {isUserInVoice} from './utils/channels';
@@ -104,6 +105,7 @@ export default class {
// Register event handlers
this.client.on('guildCreate', handleGuildCreate);
+ this.client.on('typingStart', handleTypingStart);
this.client.on('voiceStateUpdate', handleVoiceStateUpdate);
return this.client.login(this.token);