aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-10-03 18:02:41 -0400
committerGitHub <noreply@github.com>2017-10-03 18:02:41 -0400
commit3c1afe0452e87ba9c25f3c45bb12ec9ee1a46032 (patch)
tree081ca559e68beb0c70361aebea05e0b3a14fcc7f
parentd63d2d1296c4981321149045350d208974daa430 (diff)
downloadAleeBot-3c1afe0452e87ba9c25f3c45bb12ec9ee1a46032.tar.gz
AleeBot-3c1afe0452e87ba9c25f3c45bb12ec9ee1a46032.tar.bz2
AleeBot-3c1afe0452e87ba9c25f3c45bb12ec9ee1a46032.zip
Updating the beta branch (#8)
* Updates on what AleeBot's playing * Minor updates on ab:say (#7)
-rw-r--r--aleebot.js25
1 files changed, 19 insertions, 6 deletions
diff --git a/aleebot.js b/aleebot.js
index da7a719..c32479e 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -36,6 +36,25 @@ const log = message => {
};
+function setGame() {
+ var games = [
+ "with version " + abversion,
+ "attacking AstralMod",
+ "with stuff",
+ "with Alee",
+ "games"
+ ]
+
+ client.user.setPresence({
+ status: 'online',
+ afk: false,
+ game: {
+ type: 0,
+ name: games[Math.floor(Math.random() * games.length)]
+ }
+ })
+}
+
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();
@@ -55,12 +74,6 @@ fs.readdir('./commands/', (err, files) => {
client.on('ready', () => {
log(`[>] AleeBot is now ready! Running version ${abversion} in ${client.guilds.size} guilds!`);
- client.user.setPresence({
- game: {
- name: 'with version ' + abversion + '',
- type: 0
- }
- });
client.user.setStatus('online')
});