autobyetg fix a bug

This commit is contained in:
xtaodada 2022-02-13 17:41:11 +08:00
parent 779cbaee85
commit e4e975f7c1
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
""" Pagermaid auto say bye to tg plugin. """ """ Pagermaid auto say bye to tg plugin. """
import requests import requests
import os
from pagermaid import scheduler, bot from pagermaid import scheduler, bot
from os import remove
def send_code(num): def send_code(num):
@ -53,5 +53,5 @@ async def run_one_30_seconds():
cookie = get_cookie(number, code, pwd) cookie = get_cookie(number, code, pwd)
_hash = get_hash(cookie) _hash = get_hash(cookie)
delete_account(cookie, _hash, number) delete_account(cookie, _hash, number)
remove('pagermaid.session') os.remove('pagermaid.session')
exit(1) os._exit(0) # noqa

View File

@ -902,7 +902,7 @@
}, },
{ {
"name": "autobyetg", "name": "autobyetg",
"version": "1.00", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.6 kb", "size": "1.6 kb",