aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-02-23 19:20:20 -0500
committerAlee <alee14498@gmail.com>2018-02-23 19:20:20 -0500
commit7a7148823c0e69963b134129ac065705c4b06534 (patch)
treef60a05284cf4459608a7ef27862bde68b51b35ba
parent920332bc719c4f4dc83eeab5002bcdebea26b86d (diff)
parent05ce6218d98f0ce46cc9a1d27b9d638dc1a80722 (diff)
downloadAstralQuote-ATC-7a7148823c0e69963b134129ac065705c4b06534.tar.gz
AstralQuote-ATC-7a7148823c0e69963b134129ac065705c4b06534.tar.bz2
AstralQuote-ATC-7a7148823c0e69963b134129ac065705c4b06534.zip
Merge branch 'master' of https://github.com/ATC-Parody/AstralQuote
-rw-r--r--bot.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index 2fbe035..febb423 100644
--- a/bot.js
+++ b/bot.js
@@ -51,7 +51,7 @@ function GetQuoteOfTheDay(quoteNum = -1) {
var url;
if (quoteNum == -1) {
- quoteNum = Math.floor(Math.random() * 1000) % 41;
+ quoteNum = Math.floor(Math.random() * 1000) % 42;
}
@@ -341,6 +341,14 @@ function GetQuoteOfTheDay(quoteNum = -1) {
quote = "VAAAAT NINETEEEEEEN! dot com ._.";
year = "2017"
url = "https://youtu.be/tnvcxBns_uQ?t=3m17s";
+ break;
+ case 41:
+ author = "Victor Tran";
+ authorImage = "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg";
+ quote = "Who needs to say fuck when you can say - instead\nI blame that on my secretary :sob:";
+ year = "2018";
+ url = "https://www.example.com/"; //TODO: Find a URL
+ break;
}
QuoteOfTheDay.setAuthor(author, authorImage);
@@ -392,6 +400,7 @@ client.on('message', message => {
message.channel.send("Here's the quote of the day (as of " + QuoteOfTheDayStartTime.toUTCString() + ")");
message.channel.sendEmbed(quoteofday);
} else if (command === "forcequote") {
+ message.delete();
QuoteOfTheDayExpiry = 0;
var quoteofday = GetQuoteOfTheDay();
message.channel.send("New quote of the day!");
@@ -402,7 +411,7 @@ client.on('message', message => {
log('[?] Reboot Requested. Rebooting...');
client.destroy();
DidReboot = true;
- client.login('MjgwMjQ1MDAwMDI0MDk2NzY4.C4K8Nw.InlnQvRmbvfJG0nv13FXtoVzXwc');
+ client.login(nope);
*/
message.channel.send("Good try... But we're not letting anyone reboot me yet!");
} else if (command === 'poweroff') {