def cmd_shutdown(ch, argument): buf = "Shutdown by {}.".format(ch.name) ch.cmd_echo(buf) game_utils.append_file(ch, settings.SHUTDOWN_FILE, buf) comm.done = True for d in instance.descriptor_list[:]: vch = handler_ch.ch_desc(d) if vch: vch.save(logout=True, force=True) comm.close_socket(d) if pywars.server: pywars.server.stop()
def cmd_idea(ch, argument): game_utils.append_file(ch, settings.IDEA_FILE, argument) ch.send("Ok. Thanks.\n")
def do_bug(ch, argument): game_utils.append_file(ch, settings.BUG_FILE, argument) ch.send("Bug logged.\n") return
def do_typo(ch, argument): game_utils.append_file(ch, settings.TYPO_FILE, argument) ch.send("Typo logged.\n") return
def cmd_typo(ch, argument): game_utils.append_file(ch, settings.TYPO_FILE, argument) ch.send("Ok. Thanks.\n")
def cmd_bug(ch, argument): game_utils.append_file(ch, settings.BUG_FILE, argument) ch.send("Ok. Thanks.\n")