diff --git a/bot/engine.js b/bot/engine.js index acd031e..9fdf885 100644 --- a/bot/engine.js +++ b/bot/engine.js @@ -55,7 +55,7 @@ class Engine { /* Bind Message Parsing */ let engine = this; - let handleMessages = (event, room, toStartOfTimeline) => { + let handleEvent = (event, room, toStartOfTimeline) => { /* Don't process messages from self */ if (event.sender.userId !== this.config.userId) { /* don't process messages that aren't of type m.room.message */ @@ -80,7 +80,7 @@ class Engine { } } - this.bot.init(handleMessages); + this.bot.init(handleEvent); /* Capture Exit Conditions */