mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-11-05 15:47:17 -05:00
DEFCON
This commit is contained in:
parent
7376396109
commit
3f877d792c
14
src/index.js
14
src/index.js
@ -217,6 +217,20 @@ client.on("message", async message => {
|
||||
if(command === "magic") {
|
||||
return message.channel.send("Do you believe in magic in a young girl\'s heart\nHow the music can free her, whenever it starts\nAnd it\'s magic, if the music is groovy\nIt makes you feel happy like an old-time movie\nI\'ll tell you about the magic, and it\'ll free your soul\nBut it\'s like trying to tell a stranger bout rock and roll")
|
||||
}
|
||||
//DEFCON Roles
|
||||
if(command === "defcon") {
|
||||
//5 levels till ban
|
||||
if(!message.member.roles.some(r=>["Admin","Member of the Order of the b l u e","Botmeister"].includes(r.name)) )
|
||||
return message.reply("Sorry, you don't have permissions to use this!");
|
||||
else {
|
||||
let con = parseInt(args[0], 5)
|
||||
let member = message.mentions.members.first();
|
||||
let role = message.guild.roles.find(role => role.name === `DEFCON ${con}`);
|
||||
member.addRole(role)
|
||||
return message.reply("DEFCON level set")
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user