Recommendations by @moosecrap and @tks_ftw
This commit is contained in:
parent
d6aee75edb
commit
4233494649
5
bot.js
5
bot.js
@ -70,6 +70,9 @@ client.on('message', async message => {
|
||||
console.log(`Message from Unauthorized Guild ${message.guild.name}!`);
|
||||
return;
|
||||
}
|
||||
// Pre-Work
|
||||
// Do a few things that may be helpful
|
||||
const d = new Date();
|
||||
// Process Section
|
||||
// Check for the shutup message
|
||||
if (message.content === "~") {
|
||||
@ -97,7 +100,7 @@ client.on('message', async message => {
|
||||
switch(message.content) {
|
||||
case "daytona":
|
||||
case "e":
|
||||
if (Math.random() < 0.8) return;
|
||||
if ([0,5,6].includes(d.getDay()) && Math.random() < 0.8) return;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user