Only show first prefix

This commit is contained in:
Supositware 2019-03-23 19:31:31 +01:00
parent c37d9eb85e
commit 68b16cf86c

View file

@ -21,16 +21,16 @@ class ReadyListener extends Listener {
console.log('Status type: Watching'); console.log('Status type: Watching');
let status = watch[Math.floor((Math.random() * watch.length))]; let status = watch[Math.floor((Math.random() * watch.length))];
status = status.replace('${prefix}', prefix); status = status.replace('${prefix}', prefix[0]);
this.client.user.setActivity(`${status} | ${prefix} help`, { type: 'WATCHING' }); this.client.user.setActivity(`${status} | ${prefix[0]} help`, { type: 'WATCHING' });
} else { } else {
console.log('Status type: Playing'); console.log('Status type: Playing');
let status = game[Math.floor((Math.random() * game.length))]; let status = game[Math.floor((Math.random() * game.length))];
status = status.replace('${prefix}', prefix); status = status.replace('${prefix}', prefix[0]);
this.client.user.setActivity(`${status} | ${prefix} help`, { type: 'PLAYING' }); this.client.user.setActivity(`${status} | ${prefix[0]} help`, { type: 'PLAYING' });
} }