From 8a9b81697ac17705a9115d572d0cf5687f9a7385 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 8 Apr 2021 23:20:31 -0400 Subject: [PATCH] Randomize AF Messages --- Xiao.js | 3 ++- assets/json/april-fools.json | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 assets/json/april-fools.json diff --git a/Xiao.js b/Xiao.js index 36ff11eb..c4a5a513 100644 --- a/Xiao.js +++ b/Xiao.js @@ -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; }); diff --git a/assets/json/april-fools.json b/assets/json/april-fools.json new file mode 100644 index 00000000..61ae5785 --- /dev/null +++ b/assets/json/april-fools.json @@ -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." +]