mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-09-30 06:46:13 -04:00
fix error
This commit is contained in:
parent
85398fc4e0
commit
15badc68c8
13
src/index.js
13
src/index.js
@ -144,11 +144,14 @@ 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)) ){
|
||||||
// Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
|
if(message.content.includes("@"));{
|
||||||
// eslint-disable-next-line no-unused-vars
|
// Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
|
||||||
message.delete().catch(O_o=>{});
|
// eslint-disable-next-line no-unused-vars
|
||||||
// And we get the bot to say the thing:
|
message.delete().catch(O_o=>{});
|
||||||
return message.channel.send(sayMessage);
|
// And we get the bot to say the thing:
|
||||||
|
return message.channel.send(sayMessage);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user