2024-03-17, change version code.
parent
c43e7c6f80
commit
4310a7459c
|
@ -45,7 +45,7 @@ except Exception as exc:
|
||||||
print(exc)
|
print(exc)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.16)"
|
CONST_APP_VERSION = "MaxBot (2024.03.17)"
|
||||||
|
|
||||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
@ -12629,8 +12629,12 @@ def main(args):
|
||||||
driver = None
|
driver = None
|
||||||
if not config_dict is None:
|
if not config_dict is None:
|
||||||
driver = get_driver_by_config(config_dict)
|
driver = get_driver_by_config(config_dict)
|
||||||
if not config_dict["advanced"]["headless"]:
|
if not driver is None:
|
||||||
resize_window(driver, config_dict)
|
if not config_dict["advanced"]["headless"]:
|
||||||
|
resize_window(driver, config_dict)
|
||||||
|
else:
|
||||||
|
print("無法使用web driver,程式無法繼續工作")
|
||||||
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
print("Load config error!")
|
print("Load config error!")
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.16)"
|
CONST_APP_VERSION = "MaxBot (2024.03.17)"
|
||||||
|
|
||||||
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
|
|
@ -11,7 +11,7 @@ import requests
|
||||||
import asyncio
|
import asyncio
|
||||||
import nodriver as uc
|
import nodriver as uc
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.16)"
|
CONST_APP_VERSION = "MaxBot (2024.03.17)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
|
|
|
@ -29,7 +29,7 @@ from datetime import datetime
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.16)"
|
CONST_APP_VERSION = "MaxBot (2024.03.17)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"
|
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"
|
||||||
|
|
|
@ -50,7 +50,7 @@ try:
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.16)"
|
CONST_APP_VERSION = "MaxBot (2024.03.17)"
|
||||||
|
|
||||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
|
Loading…
Reference in New Issue