mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-12-22 15:36:24 -05:00
perms v2
This commit is contained in:
parent
23e32b90f0
commit
a702361cc5
@ -75,7 +75,7 @@ client.on("message", async message => {
|
||||
const sayMessage = args.join(" ");
|
||||
if(sayMessage.includes('@'))
|
||||
return message.reply("\nStop pinging yourself \nStop pinging yourself");
|
||||
else if (!message.member.roles.some(r=>["Admin", "Mods","Member of the Order of the b l u e","Botmeister","Ally of the Order"].includes(r.name)) ) {
|
||||
if (!message.member.roles.some(r=>["Admin", "Mods","Member of the Order of the b l u e","Botmeister","Ally of the Order"].includes(r.name)) ) {
|
||||
// Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
|
||||
message.delete().catch(O_o=>{});
|
||||
// And we get the bot to say the thing:
|
||||
|
Loading…
Reference in New Issue
Block a user