fixed incoming queue

This commit is contained in:
Morgan McMillian 2017-09-15 13:16:23 -07:00
parent 4951335093
commit e0622d26b0

View file

@ -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())