Fixed webcam event breaking mash listener.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
const config = require('config');
|
||||
|
||||
function onCommand(args, context) {
|
||||
console.log(context);
|
||||
|
||||
context.bot.socket.transmit('message', {
|
||||
roomId: context.room?.id,
|
||||
recipient: context.message.user?.username,
|
||||
|
||||
@@ -188,7 +188,7 @@ function onCommand(args, context) {
|
||||
}
|
||||
|
||||
function onMessage(message, context) {
|
||||
if (mash && context.user.id !== config.user.id) {
|
||||
if (mash && context.user?.id !== config.user.id) {
|
||||
play(message.body, context, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user