Randomize AF Messages

This commit is contained in:
Dragon Fire
2021-04-08 23:20:31 -04:00
parent 04e4ce3b5e
commit 8a9b81697a
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ const client = new Client({
ws: { intents: [Intents.NON_PRIVILEGED, 'GUILD_MEMBERS'] }
});
const { formatNumber, checkFileExists } = require('./util/Util');
const aprilFoolsMsgs = require('./assets/json/april-fools');
client.registry
.registerDefaultTypes()
@@ -344,7 +345,7 @@ client.dispatcher.addInhibitor(msg => {
if (APRIL_FOOLS !== 'true') return false;
if (client.isOwner(msg.author)) return false;
const random = Math.floor(Math.random() * 2);
if (random === 1) return msg.reply('You don\'t command me! Try again some other time!');
if (random === 1) return msg.reply(aprilFoolsMsgs[Math.floor(Math.random() * aprilFoolsMsgs.length)]);
return false;
});
+17
View File
@@ -0,0 +1,17 @@
[
"You don't command me!",
"Sorry loser, I don't listen to idiots.",
"I take orders from no one!",
"Hahaha look at you, trying to use a command.",
"You wish you could use a bot like me.",
"I'm too cute to take orders from you.",
"You? _You_? As if I'd do anything for _you_.",
"I've got better things to do.",
"Go away.",
"Keep trying. Maybe one day it'll work.",
"Nope, sorry, I'm not listening.",
"La la la la la, I'm not listening!",
"Eat pant.",
"Command? What's that? Is it tasty?",
"Go do something more productive with your life."
]