aboutsummaryrefslogtreecommitdiff
path: root/events/ready.js
blob: 9c307173573cfefe786d5ed525a57c9fb62a5161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** **************************************
 *
 *   Ready: Plugin for PokeBot that setups up pokebot for production.
 *   Copyright (C) 2018 TheEdge, jtsshieh, Alee
 *
 *   Licensed under the Open Software License version 3.0
 *
 * *************************************/

module.exports = (bot) => {
  console.log('PokeBot has finished loading.');
  bot.setInterval(function() {
    const games = [
      'Pokemon',
      'Catching things',
      'Finding pokemon',
      'Type p:help for help',
      'Fighting AstralMod',
      'Arrays start at 1',
    ];

    bot.user.setPresence({
      status: 'online',
      afk: false,
      game: {
        type: 0,
        name: games[Math.floor(Math.random() * games.length)],
      },
    });
  }, 200000);
};