aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-10-27 10:56:35 -0400
committerUnknown <Alee14498@gmail.com>2017-10-27 10:56:35 -0400
commit5371f6b858be4434d03de574d9a8f236615d1d32 (patch)
tree9f6ee9f77f9ea8ecee3f720b79a59bbfefc09018
parent19237ffdb4832122a5f7ff48adf662907617ea33 (diff)
downloadAstralQuote-ATC-5371f6b858be4434d03de574d9a8f236615d1d32.tar.gz
AstralQuote-ATC-5371f6b858be4434d03de574d9a8f236615d1d32.tar.bz2
AstralQuote-ATC-5371f6b858be4434d03de574d9a8f236615d1d32.zip
Added the invitebot command and fixes
-rw-r--r--bot.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index 778999c..5513746 100644
--- a/bot.js
+++ b/bot.js
@@ -238,6 +238,7 @@ client.on('message', message => {
.addField("!ping, !pong", "Requests AstrelQuact to reply with a message\n", true)
.addField("!quoteoftheday", "Requests AstrelQuact for the quote of the day\n", true)
.addField("!forcequote", "Requests AstrelQuact to reset the quote of the day\n", true)
+ .addField("!invitebot", "Requests AstrelQuact to tell you the invite link\n", true)
.addField("!reboot", "Requests AstrelQuact to reboot\n", true)
.addField("!poweroff", "Tells AstrelQuact to leave\n", true)
.setFooter("- This was made by TheRandomMelon and vicr123 and modified by Alee14.")
@@ -263,7 +264,7 @@ client.on('message', message => {
"\n```");
} else if (message.content === '!about') {
message.channel.send("Made in Node.js by TheRandomMelon and vicr123. Crafted for the AstrelTaser Cantral Discord server. And this was modified by Alee14.");
- } else if (message.content === 'contribute') {
+ } else if (message.content === '!contribute') {
message.reply("I can see you want to help AQ? Welp here's the link: https://github.com/FakeDiscordServersBots/AstralQuote");
} else if (message.content === '!uptime') {
var timeString; // What we'll eventually put into the message
@@ -286,6 +287,15 @@ client.on('message', message => {
message.reply(":clock1: AstrelQuact has been up for " + timeString + " hours.");
console.log("[!] Someone just typed in the uptime command! Here's how long i've been up for: " + timeString + " hours.")
+ } else if (message.content === '!invitebot') {
+ var embed = new Discord.RichEmbed();
+
+ embed.setAuthor("AstrelQuact", "https://cdn.discordapp.com/avatars/373224323529310208/10311b6f6bb439681480b0ced7efaf66.png?size=2048");
+ embed.setColor("#BF6FDB");
+ embed.setDescription("Ooh! I can see you want to invite me to a server! Here's the link: https://discordapp.com/oauth2/authorize?client_id=373224323529310208&scope=bot&permissions=0");
+ embed.setURL("https://discordapp.com/oauth2/authorize?client_id=373224323529310208&scope=bot&permissions=0");
+
+ message.channel.send(embed)
} else if (message.content.startsWith("!")) {
deleteOriginalMessage = false;