feat:飞书文档补全
This commit is contained in:
@@ -4,7 +4,7 @@ sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
|
||||
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
||||
|
||||
DWS = r"C:\Users\admin\.real\.bin\dws\bin\dws.exe"
|
||||
from config import DWS
|
||||
|
||||
def fetch(group_id, time_str, forward="true"):
|
||||
cmd = [DWS, "chat", "message", "list", "--group", group_id, "--time", time_str, "--forward", forward, "--format", "json", "--limit", "200"]
|
||||
@@ -73,3 +73,4 @@ with open(os.path.join(PROJECT_ROOT, "data", "raw-messages", "all_messages_combi
|
||||
json.dump(output, f, ensure_ascii=False, indent=2)
|
||||
print("Saved!")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user