mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-23 00:25:32 +00:00
Moved grantDeveloper role permission into env file.
This commit is contained in:
parent
369d01bcb9
commit
9d15288d9c
1
env.json
1
env.json
|
@ -26,6 +26,7 @@
|
||||||
"DISCORD_RULES_ROLE": {
|
"DISCORD_RULES_ROLE": {
|
||||||
"description": "The unique ID for the role that the bot will *remove* when the user accepts the rules."
|
"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": {
|
"DISCORD_LOGIN_TOKEN": {
|
||||||
"description": "The login token of the bot."
|
"description": "The login token of the bot."
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
exports.roles = ['Admins', 'Moderators', 'CitraBot'];
|
exports.roles = ['Admins', 'Moderators', 'CitraBot'];
|
||||||
exports.command = function (message) {
|
exports.command = function (message) {
|
||||||
var role = '345247291843805185';
|
var role = process.env.DISCORD_DEVELOPER_ROLE
|
||||||
message.mentions.users.map((user) => {
|
message.mentions.users.map((user) => {
|
||||||
let member = message.guild.member(user);
|
let member = message.guild.member(user);
|
||||||
let alreadyJoined = member.roles.has(role);
|
let alreadyJoined = member.roles.has(role);
|
||||||
|
|
Loading…
Reference in a new issue