From a33c0437d5cd789ab1e98e1c9458af1f5940a8e2 Mon Sep 17 00:00:00 2001 From: Killian Date: Mon, 31 Aug 2020 09:25:17 +0200 Subject: [PATCH] Add startTyping() --- Commands/Games/bingo.js | 2 +- Events/messageCreate.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Commands/Games/bingo.js b/Commands/Games/bingo.js index c193cac..7ed1bad 100644 --- a/Commands/Games/bingo.js +++ b/Commands/Games/bingo.js @@ -30,7 +30,7 @@ module.exports = class extends Command { collector.on(`end`, (reason) => { if (reason === `idle`) { - message.chat.sendMessage(`the time is out and no one found the number... it was: ${numberToFind}!`) + message.chat.sendMessage(`The time is out and no one found the number... it was: ${numberToFind}!`) } }); } diff --git a/Events/messageCreate.js b/Events/messageCreate.js index 50627ff..c267374 100644 --- a/Events/messageCreate.js +++ b/Events/messageCreate.js @@ -61,6 +61,7 @@ module.exports = class { tStamps.set(message.authorID, timeNow); setTimeout(() => tStamps.delete(message.authorID), cdAmount); + message.chat.startTyping({ time: 5000 }) cmd.run(message, args, data); } } diff --git a/package.json b/package.json index 0f2587b..4ca8a1b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "instabot", - "version": "1.2.8", + "version": "1.2.9", "description": "A fully working instagram bot using Insta.js by androz2091", "main": "index.js", "scripts": {