strings in variables can now be received by get_string_token

and inputs can be directly assigned to a variable
This commit is contained in:
2026-05-26 20:35:57 +01:00
parent f6a95f76bd
commit cc3eca857d
8 changed files with 68 additions and 28 deletions
+6
View File
@@ -44,6 +44,12 @@ def choice(choices):
print("Invalid choice, defaulting to 0")
requests.post(api_url, json=choice);
def get_input():
api_url = "http://localhost:20264/input"
input_string = input()
requests.post(api_url, json=input_string);
# Character outputs text to the user
def output(character, text):
print(character["name"], "says")