diff --git a/README.md b/README.md index 63b5376..d8de1ef 100644 --- a/README.md +++ b/README.md @@ -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 * Bot status (activity) for players online number -* Get invite link on every bot start \ No newline at end of file +* Get invite link on bot start (available option in config) \ No newline at end of file diff --git a/config.js b/config.js index cc6634e..13d7452 100644 --- a/config.js +++ b/config.js @@ -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) }, diff --git a/events/ready.js b/events/ready.js index dfd1270..add7fbd 100644 --- a/events/ready.js +++ b/events/ready.js @@ -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`)) } \ No newline at end of file diff --git a/package.json b/package.json index a2a687b..2280ab9 100644 --- a/package.json +++ b/package.json @@ -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": {