This commit is contained in:
Alex Brow 2020-02-20 16:11:42 -05:00
parent 7376396109
commit 3f877d792c
No known key found for this signature in database
GPG Key ID: F48926893F475C25

View File

@ -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")
};
};
});