fixed bugs when not using shorturl

This commit is contained in:
2025-06-27 16:46:32 +02:00
parent 8f90ea74d4
commit 6ff9cafc34
9 changed files with 67 additions and 26 deletions
+4 -2
View File
@@ -58,5 +58,7 @@ async def main():
await bot.stop()
asyncio.run(main())
try:
asyncio.run(main())
except KeyboardInterrupt:
raise SystemExit
+1 -1
View File
@@ -98,7 +98,7 @@ def read_data(bot: botPy.Bot) -> bool:
with open(os.path.join(DEFAULT_PATH, "re_data_preset.json"), "r") as f:
data_preset_json: dict[str, Any] = json.load(f)
data_preset_json[botPy.RE_DATA_POSTS].pop("EXAMPLE VALUE", None)
data_preset_json[botPy.RE_DATA_POSTS].pop("EXAMPLE URL", None)
with open(r_path, "w") as f:
json.dump(data_preset_json, f, indent = 2)