Closed sinout closed 6 years ago
Hi @sinout, you can do this:
slimbot.on('message', message => {
if (message.text === '/start') {
// do your thing here when someone uses the /start command
}
});
Yeah, thank you. Just wanted to know if there are any predefined listeners for commands.
E.g how can I listen for
/start
command ? Is this available only by parsing messagetext
property or byentities[0].type
?