mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-10-01 15:25:54 -04:00
WoW iM sTuPiD
This commit is contained in:
parent
a8abbd0174
commit
601dc1755a
@ -144,14 +144,13 @@ client.on("message", async message => {
|
|||||||
// To get the "message" itself we join the `args` back into a string with spaces:
|
// To get the "message" itself we join the `args` back into a string with spaces:
|
||||||
const sayMessage = args.join(" ");
|
const sayMessage = args.join(" ");
|
||||||
if (message.member.roles.cache.some(r=>["Admin","Mods","Member of the Order","Botmeister","Ally of the Order","say"].includes(r.name)) ){
|
if (message.member.roles.cache.some(r=>["Admin","Mods","Member of the Order","Botmeister","Ally of the Order","say"].includes(r.name)) ){
|
||||||
if(message.content.includes("@"));{
|
if(message.content.includes("@")){
|
||||||
return message.reply("haha no")
|
return message.reply("haha no")
|
||||||
}
|
}
|
||||||
// Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
|
// Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
|
||||||
// eslint-disable-next-line no-unused-vars, no-unreachable
|
// eslint-disable-next-line no-unused-vars
|
||||||
message.delete().catch(O_o=>{});
|
message.delete().catch(O_o=>{});
|
||||||
// And we get the bot to say the thing:
|
// And we get the bot to say the thing:
|
||||||
// eslint-disable-next-line no-unreachable
|
|
||||||
return message.channel.send(sayMessage);
|
return message.channel.send(sayMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user