From 21e0b7f90219f08fd78fc49caddcd3cccea82bda Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 7 Jan 2020 15:02:19 -0600 Subject: [PATCH] engine method naming cleanup --- bot/engine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */