here we go

This commit is contained in:
Alex Brow 2020-03-22 22:07:40 -04:00
parent 24da467446
commit 381782c987
No known key found for this signature in database
GPG Key ID: F48926893F475C25
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
echo "Updating"
#update everything
cd /home/tech1/Osselbot/
npm install discord.js
npm upgrade discord.js
git pull --force
echo "STARTING"
node ./src/index.js

View File

@ -74,7 +74,7 @@ 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 (message.member.roles.some(r=>["Admin", "Mods","Member of the Order of the b l u e","Botmeister","Ally of the Order","say"].includes(r.name)) ){
if (message.member.cache.roles.some(r=>["Admin", "Mods","Member of the Order of the b l u e","Botmeister","Ally of the Order","say"].includes(r.name)) ){
if(sayMessage.includes('@')) {
return message.reply("\nStop pinging yourself \nStop pinging yourself");
}