Now with slash commands!

This commit is contained in:
Supositware 2022-08-16 21:12:49 +02:00
parent 2b94b6cc9e
commit e6438e2117

View file

@ -18,7 +18,8 @@ export default {
if (random === 0) { if (random === 0) {
console.log('Status type: \x1b[32mWatching\x1b[0m'); console.log('Status type: \x1b[32mWatching\x1b[0m');
const status = watch[Math.floor((Math.random() * watch.length))]; let status = watch[Math.floor((Math.random() * watch.length))];
status = status + ' | Now with slash commands!';
console.log(`Setting status to: ${status}`); console.log(`Setting status to: ${status}`);
client.user.setActivity(status, { type: 'WATCHING' }); client.user.setActivity(status, { type: 'WATCHING' });
} }
@ -26,9 +27,11 @@ export default {
else if (random === 1) { else if (random === 1) {
console.log('Status type: \x1b[32mPlaying\x1b[0m'); console.log('Status type: \x1b[32mPlaying\x1b[0m');
const status = game[Math.floor((Math.random() * game.length))]; let status = game[Math.floor((Math.random() * game.length))];
status = status + ' | Now with slash commands!';
console.log(`Setting status to: ${status}`); console.log(`Setting status to: ${status}`);
client.user.setActivity(status, { type: 'PLAYING' }); client.user.setActivity(status + ' | Now with slash commands!', { type: 'PLAYING' });
} }
} }
}, },