Skip to content

Commit

Permalink
😍 [1.2.0] - Discord.js v13 support
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
PetyXbronCZ committed Oct 28, 2021
1 parent dcbdb15 commit 0937cfb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This code could not be created without **Minecraft server util package**
## TO DO

* <s>Auto changing status message</s>
* Auto changing status
* Auto changinng bot status (activity)
* <s>Status command</s>
* <s>Ip command</s>
* <s>Version command</s>
Expand All @@ -27,9 +27,13 @@ This code could not be created without **Minecraft server util package**
* <s>Poll/Voting channel</s>
* 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
* <s>Installation with repl.it</s>
* 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
13 changes: 5 additions & 8 deletions events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 0937cfb

Please sign in to comment.