How can I just remove the bot.on () in order to rerun the bot.onText ()? Because if I do bot.removeListener ('message') it also removes the bot.onText ()
bot.onText(/\/login/, (msg) => {
bot.on('message', (msg) => {
//do some stuff
bot.removeListener('message');
});
});