diff options
Diffstat (limited to 'events/ready.js')
| -rw-r--r-- | events/ready.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/events/ready.js b/events/ready.js new file mode 100644 index 0000000..67ef6ec --- /dev/null +++ b/events/ready.js @@ -0,0 +1,23 @@ +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); +}; |
