aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-10-26 17:45:17 -0400
committerUnknown <Alee14498@gmail.com>2017-10-26 17:45:17 -0400
commit876952d24df2cebee846ed6260be708eadd3f4db (patch)
tree5f5b9bc18064a4752ac4624f34183ff9a18f64c7 /bot.js
parent1831124963250337229356a80ac44af1c2ed41ac (diff)
downloadAstralQuote-ATC-876952d24df2cebee846ed6260be708eadd3f4db.tar.gz
AstralQuote-ATC-876952d24df2cebee846ed6260be708eadd3f4db.tar.bz2
AstralQuote-ATC-876952d24df2cebee846ed6260be708eadd3f4db.zip
Making some changes
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/bot.js b/bot.js
index f27f43b..384d6ec 100644
--- a/bot.js
+++ b/bot.js
@@ -1,5 +1,6 @@
const Discord = require('discord.js');
const client = new Discord.Client();
+const config = require('./config.json');
var QuoteOfTheDay;
var QuoteOfTheDayExpiry = 0;
@@ -200,11 +201,11 @@ client.on('message', message => {
message.channel.send("Well... vicr123 tried to code this... but it kept crashing... Ironic isn't it? :(").then(messageDeleteTimer);
} else if (message.content === '!help') {
message.channel.send("Available commands:\n```\n" +
- "!ping, !pong Requests AstralQuote to reply with a message\n" +
- "!quoteoftheday Requests AstralQuote for the quote of the day\n" +
- "!forcequote Requests AstralQuote to reset the quote of the day\n" +
- "!reboot Requests AstralQuote to reboot\n" +
- "!poweroff Tells AstralQuote to leave\n```"
+ "!ping, !pong Requests AstrelQuact to reply with a message\n" +
+ "!quoteoftheday Requests AstrelQuact for the quote of the day\n" +
+ "!forcequote Requests AstrelQuact to reset the quote of the day\n" +
+ "!reboot Requests AstrelQuact to reboot\n" +
+ "!poweroff Tells AstrelQuact to leave\n```"
).then(messageDeleteTimer20s);
} else if (message.content === '!easteregg') {
message.channel.send("```cpp\n" +
@@ -238,7 +239,7 @@ client.on('message', message => {
msg = "What are you trying to do!?";
break;
case 5:
- msg = "Is this the end of AstralQuote?";
+ msg = "Is this the end of AstrelQuact?";
break;
case 6:
msg = "Not sure what you mean.";
@@ -263,7 +264,7 @@ client.on('guildMemberAdd', usr => {
usr.sendEmbed(embed)
});
-client.login('MjgwMjQ1MDAwMDI0MDk2NzY4.C4K8Nw.InlnQvRmbvfJG0nv13FXtoVzXwc').catch(
+client.login(config.token).catch(
function() {
console.log("[ERROR] Login failed.");
});