diff --git a/bot.js b/bot.js index cd56a13..04168dd 100644 --- a/bot.js +++ b/bot.js @@ -283,7 +283,29 @@ const client = new Discord.Client(); client.on('ready', () => { console.log('Bot is ready'); - client.user.setGame("with cute bunnies.") + + // update status + var availableTypes = ['PLAYING', 'LISTENING', 'WATCHING']; + var setType = availableTypes[Math.floor(Math.random() * availableTypes.length)]; + var setStatus; + + switch(setType) + { + case 'PLAYING': + var availableStatus = ['with cute bunnies', 'with bunny toys', 'in bunny heaven', 'with my pet bunny', 'with all the bunnies']; + setStatus = availableStatus[Math.floor(Math.random() * availableStatus.length)]; + break; + case 'LISTENING': + var availableStatus = ['to cute bunnies', 'to adorable bunnies eating', 'to bunnies playing with toys', 'to bunnies pouting']; + setStatus = availableStatus[Math.floor(Math.random() * availableStatus.length)]; + break; + case 'WATCHING': + var availableStatus = ['cute bunnies', 'cute bunnies play', 'cute bunnies sleep', 'bunnies nibbling on food', 'swiftimustv']; + setStatus = availableStatus[Math.floor(Math.random() * availableStatus.length)]; + break; + } + + client.user.setActivity(setStatus, {type: setType}); }); // commands diff --git a/package.json b/package.json index ec61a1b..99856f4 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "main": "bot.js", "author": "Daniel", "dependencies": { - "discord.js": "^11.2.1", - "ffmpeg-binaries": "^3.2.2-3", - "xmlhttprequest": "^1.8.0", - "node-opus": "^0.2.7" + "discord.js": "^11.4.2", + "ffmpeg-binaries": "^3.2.2", + "node-opus": "^0.2.9", + "xmlhttprequest": "^1.8.0" } }