添加青龙运行主函数

This commit is contained in:
余弦 2022-10-11 14:16:09 +08:00
parent d4075528b8
commit d6c0d87f0a

17
ql_main.py Normal file
View File

@ -0,0 +1,17 @@
"""
new Env('米游社');
"""
import notify
from loghelper import log
from error import CookieError
from main import main
if __name__ == "__main__":
try:
status_code, message = main()
except CookieError:
status_code = 1
message = "账号Cookie出错"
log.error("账号Cookie有问题")
notify.send("米游社", message)