fixed incoming queue
This commit is contained in:
parent
4951335093
commit
e0622d26b0
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ def recv_event_q(queue, post):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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:
|
with open("partybot-config.yaml", "rb") as config_file:
|
||||||
config = yaml.load(config_file)
|
config = yaml.load(config_file)
|
||||||
|
@ -81,7 +81,7 @@ if __name__ == "__main__":
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
item = rs.rpop('MNDP')
|
item = rs.rpop('MNDP')
|
||||||
if item:
|
if item:
|
||||||
bot.recv_event_q('MNDP', item.decode())
|
recv_event_q('MNDP', item.decode())
|
||||||
item = rs.rpop('JUKEBOX')
|
item = rs.rpop('JUKEBOX')
|
||||||
if item:
|
if item:
|
||||||
bot.recv_event_q('JUKEBOX', item.decode())
|
recv_event_q('JUKEBOX', item.decode())
|
||||||
|
|
Loading…
Reference in a new issue