diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 14:28:47 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 14:28:47 -0500 |
| commit | 3d36bcf0591f2694c3a2472a157ecca0de8d35fc (patch) | |
| tree | 001c8db22b00c734bf22f9ed2e8b9534029533cd /events | |
| parent | 10d53c4d459a4d253599c45bb95e4b8164690e0c (diff) | |
| download | PokeBot-3d36bcf0591f2694c3a2472a157ecca0de8d35fc.tar.gz PokeBot-3d36bcf0591f2694c3a2472a157ecca0de8d35fc.tar.bz2 PokeBot-3d36bcf0591f2694c3a2472a157ecca0de8d35fc.zip | |
Hopefully it works
Diffstat (limited to 'events')
| -rw-r--r-- | events/ready.js | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/events/ready.js b/events/ready.js index 67ef6ec..5115690 100644 --- a/events/ready.js +++ b/events/ready.js @@ -1,23 +1,21 @@ -function setGame(bot) { - const games = [ - 'Pokemon', - 'Catching things', - 'Finding pokemon', - 'Type p:help for help', - 'Fighting AstralMod', - ]; - - bot.user.setPresence({ - status: 'online', - afk: false, - game: { - type: 0, - name: games[Math.floor(Math.random() * games.length)], - }, - }); -} module.exports = (bot) => { console.log('PokeBot has finished loading.'); - setGame(bot); - bot.setInterval(setGame(bot), 200000); + bot.setInterval(function() { + const games = [ + 'Pokemon', + 'Catching things', + 'Finding pokemon', + 'Type p:help for help', + 'Fighting AstralMod', + ]; + + bot.user.setPresence({ + status: 'online', + afk: false, + game: { + type: 0, + name: games[Math.floor(Math.random() * games.length)], + }, + }); + }, 200000); }; |
