From 0937cfbbc61b236edbd4d9398ca7a9944a476815 Mon Sep 17 00:00:00 2001 From: PetyXbronCZ Date: Thu, 28 Oct 2021 10:59:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8D=20[1.2.0]=20-=20Discord.js=20v13?= =?UTF-8?q?=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed favicon from status command - Logs a bot's prefix to console - Get repository version from 'minecraft-bot version' message in a server - New ideas, edited TO-DO list - Changed event 'message' to 'messageCreate' - Created Intents for bot - Edited message sending - Edited typing function - Updated other modules --- README.md | 16 ++++++++++------ events/messageCreate.js | 13 +++++-------- package.json | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index c279a85..73acb5b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This code could not be created without **Minecraft server util package** ## TO DO * Auto changing status message -* Auto changing status +* Auto changinng bot status (activity) * Status command * Ip command * Version command @@ -27,9 +27,13 @@ This code could not be created without **Minecraft server util package** * Poll/Voting channel * AdminTeam applications * Slash commands -* Send embed message -* Send message/announcement -* Lockdown mode +* Send custom embed message +* Send custom message/announcement +* Lockdown mode (no messages, no new members) * Custom reply for command ip, test and version -* Installation with repl.it -* Better test command \ No newline at end of file +* Installation with repl.it +* Better test command (shows mroe information) +* More text languages (or custom) +* Create threads from every message in voting channel +* Bot status (activity) for players online number +* Get invite link on every bot start \ No newline at end of file diff --git a/events/messageCreate.js b/events/messageCreate.js index 2890f5b..4e0540f 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -3,14 +3,11 @@ const version = require('../package.json').version module.exports = async (bot, message) => { if(message.author.bot) return; - if(message.channel.type === "dm") { - if(message.content.includes('minecraft-bot version')) { - message.channel.sendTyping(); - setTimeout(function(){ - message.channel.send({ content: version }); - }, ms('1,5s')); - return; - } + if(message.content.includes(`minecraft-bot version`)) { + message.channel.sendTyping(); + setTimeout(function(){ + message.channel.send({ content: version }); + }, ms('1s')); return; } diff --git a/package.json b/package.json index eba4b6e..1b0a6e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minecraft-bot", - "version": "1.1.5", + "version": "1.2.0", "description": "Discord minecraft bot, with which you can check your minecraft server status (online players, version, online status etc.)", "main": "index.js", "scripts": {