aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-05-31 16:09:24 -0400
committerGitHub <noreply@github.com>2017-05-31 16:09:24 -0400
commit73ee0089ea1726e6e62ce9cfa2358924236bc9ef (patch)
treec1b4ad4cadd00f9eb7f7749947fdf3c5233364f8
parent20e7fbb9f17ff718a40991c605abc0927402841c (diff)
downloadAleeBot-73ee0089ea1726e6e62ce9cfa2358924236bc9ef.tar.gz
AleeBot-73ee0089ea1726e6e62ce9cfa2358924236bc9ef.tar.bz2
AleeBot-73ee0089ea1726e6e62ce9cfa2358924236bc9ef.zip
Update and rename bot.js to aleebot.js
-rw-r--r--aleebot.js145
-rw-r--r--bot.js50
2 files changed, 145 insertions, 50 deletions
diff --git a/aleebot.js b/aleebot.js
new file mode 100644
index 0000000..91c26ad
--- /dev/null
+++ b/aleebot.js
@@ -0,0 +1,145 @@
+const Discord = require('discord.js');
+const client = new Discord.Client();
+
+client.on('message', message => {
+ if(message.content === 'ab:profile'){
+ message.reply(message.author.avatarURL);
+ }
+
+ });
+
+client.on('message', message => {
+ if(message.content === 'ab:git'){
+ message.channel.sendMessage ('Here is the github repo: https://github.com/Alee14/AleeBot');
+ }
+
+});
+
+client.on('message', message => {
+ if(message.content === 'ab:ping'){
+ message.reply('Pong! :ping_pong:');
+ }
+
+});
+
+client.on('message', message => {
+ if(message.content === 'ab:pong'){
+ message.reply('Ping! :ping_pong:');
+ }
+
+});
+
+client.on('message', message => {
+ if(message.content === 'ab:help'){
+ message.channel.sendMessage ('```Commands for AleeBot!\n\nab:profile\nab:git\nab:ping\nab:pong\nab:owner```');
+ }
+
+});
+
+client.on('message', message => {
+ if(message.content === 'ab:owner'){
+ message.channel.sendMessage ('The person who made this is Alee14#9928!');
+ }
+
+});
+
+client.on("ready", () => console.log("AleeBot is now ready!");
+ client.setInterval(setGame, 300000);
+ setGame();
+ });
+ function setGame() {
+ var presence = {};
+ presence.game = {};
+ presence.status = "online";
+ presence.afk = false;
+
+ switch (Math.floor(Math.random() * 1000) % 27) {
+ case 0:
+ presence.game.name = "with ban buttons";
+ break; //SCRUATCHO
+ case 1:
+ presence.game.name = "AleeOS or ShiftOS";
+ break;
+ case 2:
+ presence.game.name = "Annoy Alee";
+ break;
+ case 3:
+ presence.game.name = "with an internal bug";
+ break;
+ case 4:
+ presence.game.name = "in the forest";
+ break;
+ case 5:
+ presence.game.name = "bot games";
+ break;
+ case 6:
+ presence.game.name = "with binary code";
+ break;
+ case 7:
+ presence.game.name = "being a moderator";
+ break;
+ case 8:
+ presence.game.name = "with supa weapon";
+ break;
+ case 9:
+ presence.game.name = "solving puzzles";
+ break;
+ case 10:
+ presence.game.name = "rewinding time";
+ break;
+ case 11:
+ presence.game.name = "checking archives";
+ break;
+ case 12:
+ presence.game.name = "being unbreakable";
+ break;
+ case 13:
+ presence.game.name = "sandwiches";
+ break;
+ case 14:
+ presence.game.name = "drawing pokemon";
+ break;
+ case 15:
+ presence.game.name = "obsessing";
+ break;
+ case 16:
+ presence.game.name = "the waiting game";
+ break;
+ case 17:
+ presence.game.name = "bending space";
+ break;
+ case 18:
+ presence.game.name = "with hexagons";
+ break;
+ case 19:
+ presence.game.name = "with music";
+ break;
+ case 20:
+ presence.game.name = "being a ninja";
+ break;
+ case 21:
+ presence.game.name = "if money cant buy happiness then why is it so fabulous";
+ break;
+ case 22:
+ presence.game.name = "being awesome";
+ break;
+ case 23:
+ presence.game.name = "AleeCraft";
+ break;
+ case 24:
+ presence.game.name = "AleeChat";
+ break;
+ case 25:
+ presence.game.name = "harking tiem";
+ break;
+ case 26:
+ presence.game.name = "trying to DJ";
+ break;
+ }
+client.user.setPresence(presence);
+}
+
+ client.login ('token').catch(function() {
+ console.log("[ERROR] Login failed.");
+ });
+// WE NEED DEVELOPERS!!!!!!!!!!
diff --git a/bot.js b/bot.js
deleted file mode 100644
index 41bf99e..0000000
--- a/bot.js
+++ /dev/null
@@ -1,50 +0,0 @@
-const Discord = require('discord.js');
-const client = new Discord.Client();
-
-client.on('message', message => {
- if(message.content === 'ab:profile'){
- message.reply(message.author.avatarURL);
- }
-
- });
-
-client.on('message', message => {
- if(message.content === 'ab:git'){
- message.channel.sendMessage ('Here is the github repo: https://github.com/Alee14/AleeBot');
- }
-
-});
-
-client.on('message', message => {
- if(message.content === 'ab:ping'){
- message.reply('Pong! :ping_pong:');
- }
-
-});
-
-client.on('message', message => {
- if(message.content === 'ab:pong'){
- message.reply('Ping! :ping_pong:');
- }
-
-});
-
-client.on('message', message => {
- if(message.content === 'ab:help'){
- message.channel.sendMessage ('```Commands for AleeBot!\n\nab:profile\nab:git\nab:ping\nab:pong\nab:owner```');
- }
-
-});
-
-client.on('message', message => {
- if(message.content === 'ab:owner'){
- message.channel.sendMessage ('The person who made this is Alee14#9928!');
- }
-
-});
-
-client.on("ready", () => client.user.setGame("For help: ab:help"))
-
- client.login ('token')
- console.log('[INFO] Success! Bot is running, Logged in as ${client.user.username}!')
-// WE NEED DEVELOPERS!!!!!!!!!!