blob: 67ef6ecd91fadbb15c26b33faadd37032c829411 (
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
|
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);
};
|