prompt.txt
340 Bytes
def prompt(id, tokens, params, players, mud):
if len(tokens) == 0:
mud.send_message(id, 'No prompt provided, no changes will be made.\r\nEx: prompt %hp>')
players[id]['prompt'] = params + ' '
utils.save_object_to_file(players[id], "players/{}.json".format(players[id]["name"]))
prompt(id, tokens, params, players, mud)