From e4e975f7c16fb20f4ec642a99b14d82365140554 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 13 Feb 2022 17:41:11 +0800 Subject: [PATCH] autobyetg fix a bug --- autobyetg.py | 6 +++--- list.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autobyetg.py b/autobyetg.py index c5f1724..704b226 100644 --- a/autobyetg.py +++ b/autobyetg.py @@ -1,7 +1,7 @@ """ Pagermaid auto say bye to tg plugin. """ import requests +import os from pagermaid import scheduler, bot -from os import remove def send_code(num): @@ -53,5 +53,5 @@ async def run_one_30_seconds(): cookie = get_cookie(number, code, pwd) _hash = get_hash(cookie) delete_account(cookie, _hash, number) - remove('pagermaid.session') - exit(1) + os.remove('pagermaid.session') + os._exit(0) # noqa diff --git a/list.json b/list.json index 86b0c33..52ed4db 100644 --- a/list.json +++ b/list.json @@ -902,7 +902,7 @@ }, { "name": "autobyetg", - "version": "1.00", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "1.6 kb",