sets activity

This commit is contained in:
SileNce5k 2021-02-14 20:58:14 +01:00
parent 2aa72c0ea2
commit 23f3a61fa1
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -19,6 +19,8 @@ console.log(client.commands);
client.once('ready', () => { client.once('ready', () => {
console.log('Ready!'); console.log('Ready!');
client.user.setActivity(prefix, { type: 'LISTENING' });
}); });
client.once('reconnecting', () => { client.once('reconnecting', () => {
@ -36,7 +38,7 @@ client.on('message', async message => {
if (message.author.bot) return; if (message.author.bot) return;
if (!message.content.startsWith(prefix)) return; if (!message.content.startsWith(prefix)) return;
try { try {
if (commandName == "ban" || commandName == "userinfo" || commandName == "botinfo") { if (commandName == "ban" || commandName == "userinfo" || commandName == "botinfo") {
command.execute(message, client); command.execute(message, client);