mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Randomize AF Messages
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
@@ -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."
|
||||
]
|
||||
Reference in New Issue
Block a user