Skip to content

Commit

Permalink
⭐ [1.3.0] - New things
Browse files Browse the repository at this point in the history
- Added url invite link on bot's startup (can disable in config)
  • Loading branch information
PetyXbronCZ committed Nov 13, 2021
1 parent 7955e90 commit 7db37b0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ This code could not be created without **Minecraft server util package**
* More text languages (or custom)
* Create threads from every message in voting channel
* <s>Bot status (activity) for players online number</s>
* Get invite link on every bot start
* <s>Get invite link on bot start (available option in config)</s>
5 changes: 3 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ module.exports = {
//Basic code settings
settings: {
warns: true, //Show warns? - true or false (boolean)
debug: false, //Log most of changes and updates (pretty spam) - true or false (boolean)
debug: false, //Log most of changes and updates (pretty spam)? - true or false (boolean)
inviteLink: true, //Show bot invite link on bot start? - true or false (boolean)
readyScan: true, //On bot's start, send to console server's basic info? - true or false (boolean)
split: false, //Advanced - Extract only the version like "1.17" or "1.12" etc.
split: false, //Advanced - Extract only the version like "1.17" or "1.12" etc. - true or false (boolean)
statusCH: false, //Enable auto-changing status message - true or false (boolean)
votingCH: false //Enable voting channel - true or false (boolean)
},
Expand Down
1 change: 1 addition & 0 deletions events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,5 @@ module.exports = async (bot) => {
}

console.log("✅ " + gr(bot.user.username) + " is now working with prefix " + gr(bot.prefix))
if(settings.inviteLink) console.log("☑️ " + " Invite " + chalk.blue.bold(bot.user.username) + " on " + chalk.blue.bold(`https://discord.com/oauth2/authorize?client_id=${bot.user.id}&scope=bot&permissions=11328`))
}
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.2.5",
"version": "1.3.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 7db37b0

Please sign in to comment.