From 756496f6f8ad94e3b48947e5c4493e6b9037266e Mon Sep 17 00:00:00 2001 From: Alex Brow Date: Wed, 19 Feb 2020 20:56:04 -0500 Subject: [PATCH] ughgjadl[n --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dbbaaec..3f1e406 100755 --- a/src/index.js +++ b/src/index.js @@ -73,9 +73,10 @@ client.on("message", async message => { // makes the bot say something and delete the message. As an example, it's open to anyone to use. // To get the "message" itself we join the `args` back into a string with spaces: const sayMessage = args.join(" "); - if(sayMessage.includes('@')) + 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(sayMessage.includes('@')) { return message.reply("\nStop pinging yourself \nStop pinging yourself"); - 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: