From c2b10e2dc2e5b52997f11e0df0325eee94652ac2 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 26 Nov 2017 11:59:59 -0500 Subject: vtBoshyTime now works for ATC and new quote --- bot.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 4a1b25f..f1267fd 100644 --- a/bot.js +++ b/bot.js @@ -265,9 +265,9 @@ function GetQuoteOfTheDay(quoteNum = -1) { case 30: author = "Alee14"; authorImage = "https://cdn.discordapp.com/avatars/242775871059001344/dd7be36e859f206f9b6606855681280e.png?size=2048"; - quote = "By forcking it\nSpeaking of it\nI'm adding that as my new wuote :wink:\nOh\nanother one as well :wink:"; + quote = "You could do me if you want to not show it to the public."; year = "2017"; - url = "https://www.example.com/"; //TODO: Find a URL + url = "https://prnt.sc/hfht4v"; break; case 31: author = "Alee14"; @@ -357,12 +357,19 @@ client.on('ready', () => { }); }); +function getBoshyTime(guild) { + if (guild.emojis.exists('name', 'vtBoshyTime')) { + return "<:vtBoshyTime:" + guild.emojis.find('name', 'vtBoshyTime').id + ">"; + } else { + return ":warning:"; + } +} client.on('message', message => { if (message.content === 'aq:ping') { - message.channel.send('<:vtBoshyTime:280178631886635008> PONG! I want to play pong... :\'('); + message.channel.send(getBoshyTime(message.guild) + ' PONG! I want to play pong... :\'('); } else if (message.content === 'aq:pong') { - message.channel.send('<:vtBoshyTime:280178631886635008> PING!'); + message.channel.send(getBoshyTime(message.guild) + ' PING!'); } else if (message.content === 'aq:isthisthingon') { message.channel.send('no 💤'); } else if (message.content === 'aq:quoteoftheday') { @@ -502,7 +509,7 @@ client.on('message', message => { msg = "Pretty sure you didn't expect this message to appear..."; break; } - message.channel.send("<:vtBoshyTime:280178631886635008> GAH! " + msg + " Refer to aq:help for syntax and other stuff."); + message.channel.send(getBoshyTime(message.guild) + " GAH! " + msg + " Refer to aq:help for syntax and other stuff."); } }); -- cgit v1.2.3