From e0622d26b0d3f12f32bc6a95ee8caec919c24424 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Fri, 15 Sep 2017 13:16:23 -0700 Subject: [PATCH] fixed incoming queue --- partybot-matrix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/partybot-matrix.py b/partybot-matrix.py index ee54f8a..ee1df2b 100644 --- a/partybot-matrix.py +++ b/partybot-matrix.py @@ -65,7 +65,7 @@ def recv_event_q(queue, post): if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG) + logging.basicConfig(level=logging.DEBUG,filename='partybot.log') with open("partybot-config.yaml", "rb") as config_file: config = yaml.load(config_file) @@ -81,7 +81,7 @@ if __name__ == "__main__": time.sleep(1) item = rs.rpop('MNDP') if item: - bot.recv_event_q('MNDP', item.decode()) + recv_event_q('MNDP', item.decode()) item = rs.rpop('JUKEBOX') if item: - bot.recv_event_q('JUKEBOX', item.decode()) + recv_event_q('JUKEBOX', item.decode())