diff --git a/index.js b/index.js index a61d153..555285d 100644 --- a/index.js +++ b/index.js @@ -342,12 +342,13 @@ async function addTrash(msg, om) { bot.on("messageCreate", async (message) => { //public commands + if (message.author.bot) return; const args = message.content.slice(message.content.startsWith(prefix) ? prefix.length : 0).split(/ +/); + if(args.includes("ok")) message.react("🆗") const command = args.shift().toLowerCase(); if (!message.content.startsWith(prefix) && !message.content.startsWith("—")) return; - if (message.author.bot) return; if (command == "players" || command == "p") { // Check if gData is empty diff --git a/package.json b/package.json index 42b658e..c66df75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discordcsgoserverbot", - "version": "6.9.0", + "version": "6.9.5", "description": "Server info bot", "main": "index.js", "scripts": {