mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-23 15:47:53 +00:00
autobyetg fix a bug
This commit is contained in:
parent
779cbaee85
commit
e4e975f7c1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user