it's a presentable stub now!

This commit is contained in:
2023-02-01 14:52:56 -08:00
parent 07b56dcd40
commit 7c9930e0b6
4 changed files with 123 additions and 5 deletions

8
app/pylocal/tick.py Normal file
View File

@@ -0,0 +1,8 @@
import json
import random
from . import core
@core.app.route("/tick")
def tick():
return random.choices([json.dumps({"code": 200, "event_type": 0}), json.dumps({"code": 200, "event_type": 1, "log": "The server chose a flavor text event, which hasn't been fully implemented yet."})], weights=[16, 1])[0]