From 8deed2e5f99176e935340a439405fe078508221c Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 11 Apr 2023 14:40:52 +0800 Subject: [PATCH] update --- card.py | 4 +++- config.py | 5 +++-- run_bot_windows.py | 7 +++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 run_bot_windows.py diff --git a/card.py b/card.py index ec59ed2..7c400c2 100644 --- a/card.py +++ b/card.py @@ -203,5 +203,7 @@ GREY_ID = { '43161736970240681': 'y_9', '43161736970240683': 'y_draw', '43161736970240687': 'y_skip', - '43161736970240685': 'y_reverse' + '43161736970240685': 'y_reverse', + '43161736970240609': 'draw_four', + '43161736970240607': 'colorchooser' } diff --git a/config.py b/config.py index 1657a98..945382b 100644 --- a/config.py +++ b/config.py @@ -1,10 +1,11 @@ api_id = 50322 api_hash = '9ff1a639196c0779c86dd661af8522ba' -PHONE = '+10000000000' +#PHONE = '+10000000000' +PHONE = lambda: input('Please enter your phone: ') session_name = 'session' unobot_usernames = ['unobot', 'ffee1822_bot'] -unobot_username = unobot_usernames[0] +unobot_username = unobot_usernames[-1] # should be a int or None default_delay = None # print all of the bot's cards diff --git a/run_bot_windows.py b/run_bot_windows.py new file mode 100644 index 0000000..bd8e71f --- /dev/null +++ b/run_bot_windows.py @@ -0,0 +1,7 @@ +import traceback, sys, pathlib, telethon, telethon.sync +sys.argv[0]='bot.py' +try: + exec(pathlib.Path("bot.py").read_text()) +except: + traceback.print_exc() +input("Press Enter to exit.")