snapshot before merge
This commit is contained in:
1 parent
06a5f3da4d
commit
671871e0b2
145 files changed
+9786
-59
No files matched your search
@@ -0,0 +1,13 @@
|
||||
path = r"E:\GitHub\blog\bot-go\internal\tghandlers\tghandlers.go"
|
||||
with open(path, "rb") as f:
|
||||
content = f.read().decode("utf-8")
|
||||
|
||||
# Replace helpers.GetLanIP -> tgcore.getLanIP (or just inline)
|
||||
# Replace helpers.CheckPort -> tgcore.checkPort
|
||||
content = content.replace("helpers.GetLanIP", "tgcore.GetLanIP")
|
||||
content = content.replace("helpers.CheckPort", "tgcore.CheckPort")
|
||||
content = content.replace("helpers.", "tgcore.")
|
||||
|
||||
with open(path, "wb") as f:
|
||||
f.write(content.encode("utf-8"))
|
||||
print("Fixed helpers refs in tghandlers")
|
||||
Reference in new issue
Block a user