diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-10-03 18:17:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-03 18:17:43 -0400 |
| commit | 56a9398a130a1e66a1cb575a9e3687fe620e1df3 (patch) | |
| tree | 51461e0d494171a28555267b90b6860ce637e957 | |
| parent | d9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc (diff) | |
| download | AleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.tar.gz AleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.tar.bz2 AleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.zip | |
Updating the master branch (#9)
* Minor updates on ab:say
* Updating the beta branch (#8)
* Updates on what AleeBot's playing
* Minor updates on ab:say (#7)
* Fixes
| -rw-r--r-- | aleebot.js | 36 |
1 files changed, 19 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,25 @@ 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') }); |
