parent
cdfa1760eb
commit
cde0034d93
1 changed files with 12 additions and 5 deletions
|
|
@ -78,6 +78,9 @@ client.on('message', async msg => {
|
|||
} else {
|
||||
msg.reply('This command can only be used in a group!');
|
||||
}
|
||||
} else if(msg.body == '!chats') {
|
||||
const chats = await client.getChats();
|
||||
client.sendMessage(msg.from, `The bot has ${chats.length} chats open.`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue