we need to truncate next_bridge

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-11-25 18:16:02 -05:00
parent b73ec856c4
commit ee64f5868d
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class TeeworldsBridge:
self.client.user_id = config["user_id"]
self.client.device_id = config["device_id"]
with open("next_batch","a+") as next_batch_token:
with open("next_batch","w+") as next_batch_token:
self.client.next_batch = next_batch_token.read()
await self.client.room_send(mx_room_id, message_type="m.room.message", content={"msgtype": "m.text", "body": f"Starting Teeworlds bridge. Source code: {source_url}"})