aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-03-24 23:55:40 -0400
committerAlee <alee14498@gmail.com>2018-03-24 23:55:40 -0400
commit07fe0f9f68d078881c44ddeaadbf09212f089727 (patch)
tree3fbf09d4708cdd7f9ab2b135c76ec49d33995216
parentd07e68e033d9046b4b90190436fa84865d981b35 (diff)
downloadAleeBot-07fe0f9f68d078881c44ddeaadbf09212f089727.tar.gz
AleeBot-07fe0f9f68d078881c44ddeaadbf09212f089727.tar.bz2
AleeBot-07fe0f9f68d078881c44ddeaadbf09212f089727.zip
Replaced the old games presences with a randomizer one!
-rw-r--r--src/bot_discord.js25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/bot_discord.js b/src/bot_discord.js
index bc2a66c..1361bdb 100644
--- a/src/bot_discord.js
+++ b/src/bot_discord.js
@@ -44,12 +44,25 @@ fs.readdir('./commands', (err, files) => {
client.on('ready', () => {
console.log('[>] AleeBot is now ready!');
console.log('[i] Running version ' + abVersion + ` and in ${client.guilds.size} guilds`);
- client.user.setPresence({
- game: {
- name: 'AleeBot ' + abVersion + ' | ' + config.prefix + 'help',
- type: 0,
- },
- });
+
+ client.setInterval(function() {
+ const games = [
+ 'AleeBot ' + abVersion + ' | ' + config.prefix + 'help',
+ 'Annoying Alee',
+ 'Coding stuff',
+ 'Drawing shapes',
+ 'Fighting AstralMod',
+ ];
+
+ client.user.setPresence({
+ status: 'online',
+ afk: false,
+ game: {
+ type: 0,
+ name: games[Math.floor(Math.random() * games.length)],
+ },
+ });
+ }, 200000);
client.user.setStatus('online');
});