From 290986c1914424cf0dad054ce39bc665516ee792 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Tue, 3 Oct 2017 18:14:28 -0400 Subject: Fixes --- aleebot.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'aleebot.js') diff --git a/aleebot.js b/aleebot.js index c32479e..dcc9990 100644 --- a/aleebot.js +++ b/aleebot.js @@ -36,24 +36,7 @@ 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(); @@ -74,6 +57,24 @@ fs.readdir('./commands/', (err, files) => { client.on('ready', () => { log(`[>] AleeBot is now ready! Running version ${abversion} in ${client.guilds.size} guilds!`); + 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.user.setStatus('online') }); -- cgit v1.2.3