Open zzc-tongji opened 4 years ago
I have located the bug.
bot.on('message', (m) => {
const one = m.from();
const room = m.room();
if (room) {
room.alias(one).then((data) => {
// get sender's alias in room
}).catch((error) => {
// nudge (拍一拍) message causes error
})
}
});
Good catch, and thank you very much for pointing out where the problem is!
A PR for fixing this issue is welcome.
Description
When anyone nudges (拍一拍) anyone in a group, an error will be thrown (even not terminate the process).
Environments
Log