wrong order
This commit is contained in:
parent
670fbdf282
commit
36d3ace0cc
@ -261,13 +261,13 @@ def chat_message(sid, msg):
|
||||
ses.game.toggle_competitive()
|
||||
elif '/togglebot' in msg and ses.game:
|
||||
ses.game.toggle_disconnect_bot()
|
||||
elif '/cancelgamesudo' in msg and ses.game.started:
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} stopped the current game'})
|
||||
ses.game.reset()
|
||||
elif '/cancelgame' in msg and ses.game.started:
|
||||
if (ses == ses.game.players[0]):
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} stopped the current game'})
|
||||
ses.game.reset()
|
||||
elif '/cancelgamesudo' in msg and ses.game.started:
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} stopped the current game'})
|
||||
ses.game.reset()
|
||||
elif '/startgame' in msg and not ses.game.started:
|
||||
ses.game.start_game()
|
||||
elif '/setbotspeed' in msg:
|
||||
|
Loading…
Reference in New Issue
Block a user