Fixed webcam event breaking mash listener.
This commit is contained in:
@@ -2026694,10 +2026694,10 @@
|
||||
"air_date": "2002-12-23",
|
||||
"question": "She's a real Bohemian when she wears this 5 inches above the knee",
|
||||
"value": 3800,
|
||||
"answer": "hem ian)",
|
||||
"answer": "hem",
|
||||
"round": "Double Jeopardy!",
|
||||
"show_number": "4216",
|
||||
"fullAnswer": "hem (Bo(hem)ian)"
|
||||
"fullAnswer": "Bo(hem)ian"
|
||||
},
|
||||
{
|
||||
"category": "PARTY TIME!",
|
||||
|
||||
@@ -109,7 +109,6 @@ function onConnect(data, bot) {
|
||||
}
|
||||
|
||||
function onRooms({ rooms, users }, bot) {
|
||||
console.log('rooms', rooms);
|
||||
logger.info(`Joined ${rooms.map((room) => room.name).join(', ')}`);
|
||||
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
@@ -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