From 9d15288d9cb87ab5df6b54ae50afd83eec55d350 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 4 Jun 2018 19:16:20 -0400 Subject: [PATCH] Moved grantDeveloper role permission into env file. --- env.json | 1 + src/commands/grantDeveloper.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/env.json b/env.json index 73c79de..12bc539 100644 --- a/env.json +++ b/env.json @@ -26,6 +26,7 @@ "DISCORD_RULES_ROLE": { "description": "The unique ID for the role that the bot will *remove* when the user accepts the rules." }, + "DISCORD_DEVELOPER_ROLE": true, "DISCORD_LOGIN_TOKEN": { "description": "The login token of the bot." }, diff --git a/src/commands/grantDeveloper.js b/src/commands/grantDeveloper.js index a7a0e61..e1479ee 100644 --- a/src/commands/grantDeveloper.js +++ b/src/commands/grantDeveloper.js @@ -1,6 +1,6 @@ exports.roles = ['Admins', 'Moderators', 'CitraBot']; exports.command = function (message) { - var role = '345247291843805185'; + var role = process.env.DISCORD_DEVELOPER_ROLE message.mentions.users.map((user) => { let member = message.guild.member(user); let alreadyJoined = member.roles.has(role);