summaryrefslogtreecommitdiff
path: root/server/src/commands/fun/Say.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/fun/Say.ts')
-rw-r--r--server/src/commands/fun/Say.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/commands/fun/Say.ts b/server/src/commands/fun/Say.ts
index 876f539..1fcd4da 100644
--- a/server/src/commands/fun/Say.ts
+++ b/server/src/commands/fun/Say.ts
@@ -28,11 +28,13 @@ export default class SayFun extends Command {
});
}
- public exec(msg: Message, { text }): Promise<Message> {
- console.log(text)
+ public async exec(msg: Message, { text }): Promise<Message | void> {
if (validIDs.includes(msg.author.id) || owners.includes(msg.author.id)) {
msg.delete();
- return msg.channel.send(text);
+ msg.channel.startTyping();
+ await this.client.wait(1500);
+ msg.channel.send(text);
+ return msg.channel.stopTyping();
}
return msg.delete();