diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-10-03 18:14:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-03 18:14:28 -0400 |
| commit | 290986c1914424cf0dad054ce39bc665516ee792 (patch) | |
| tree | ca71aec3317db2c05604738c72e4f0381adb69f7 /aleebot.js | |
| parent | 3c1afe0452e87ba9c25f3c45bb12ec9ee1a46032 (diff) | |
| download | AleeBot-290986c1914424cf0dad054ce39bc665516ee792.tar.gz AleeBot-290986c1914424cf0dad054ce39bc665516ee792.tar.bz2 AleeBot-290986c1914424cf0dad054ce39bc665516ee792.zip | |
Fixes
Diffstat (limited to 'aleebot.js')
| -rw-r--r-- | aleebot.js | 35 |
1 files changed, 18 insertions, 17 deletions
@@ -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') }); |
