-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (19 loc) · 817 Bytes
/
Copy pathmain.py
File metadata and controls
26 lines (19 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import argparse
import logging
from src import bot
def set_up_logging_configuration(log_level):
logging.basicConfig(
level=log_level,
format="%(asctime)s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
parser = argparse.ArgumentParser(description="PVPokeLossBot is a bot designed for the PVP mode of the mobile game Pokemon Go.")
parser.add_argument('--verbose', '-v', action='store_true', help='Enable verbose logging')
parser.add_argument('--skip-adb-check', action='store_true', help='Skip ADB connectivity check at startup (advanced users only)')
args = parser.parse_args()
set_up_logging_configuration(logging.DEBUG if args.verbose else logging.INFO)
try:
bot.run(skip_adb_check=args.skip_adb_check)
except KeyboardInterrupt:
print("")
print("Exiting program...")