feat : 群组记录存储 && .gitingore

This commit is contained in:
Wbucket
2026-09-30 22:08:14 +08:00
parent 9cb81deab4
commit 9e46704d63
3 changed files with 22 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
import os
# 记录加入的群组
class GroupCtl :
path = os.path.join(os.getcwd(),"joined_group.cfg")
groups:list[str] = []
def __init__(self) -> None:
fd = os.open(self.path,os.O_CREAT|os.W_OK)
with open(fd) as file :
self.groups.append(file.readline())