snapshot before merge

This commit is contained in:
zqlit committed 2026-06-01 17:57:22 +08:00
1 parent 06a5f3da4d
commit 671871e0b2
145 files changed
+9786 -59

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import re
# Fix tgcore - remove helpers dependency
path = r"E:\GitHub\blog\bot-go\internal\tgcore\tgcore.go"
with open(path, "rb") as f:
content = f.read().decode("utf-8")
content = re.sub(r'\t"writebot/internal/helpers"\r?\n', '', content)
# Replace helpers.CheckPort with inline check
content = content.replace('helpers.CheckPort', 'checkPort')
content = content.replace('helpers.GetLanIP', 'getLanIP')
with open(path, "wb") as f:
f.write(content.encode("utf-8"))
print("tgcore fixed")