v3.1.0
New option in addSpeechEvent function that allows custom check if speech should be processed. Example usage:
addSpeechEvent(client, {
shouldProcessSpeech: (user) => {
if (user.username === "awesomeNickname") {
return true;
}
return false;
}
})
Speech will be processed only when someone with "awesomeNickname" said something