This commit is contained in:
2024-01-13 04:25:48 +01:00
parent 8433e0f47e
commit ccc3122f3c
2 changed files with 8 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ def send_notification(app, target_user, mapname, old_replay, new_replay):
url = app.config["DISPATCH_SERVER"]
if not url:
return
# send to event dispatcher #
message = "Trackmania: Record broken on {}".format(mapname)
message += "Old time: {}".format(old_replay.get_human_readable_time())