1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00

Merge branch 'master' into dev

This commit is contained in:
LmeSzinc
2021-02-20 17:35:56 +08:00
13 changed files with 45 additions and 29 deletions

View File

@@ -20,9 +20,13 @@ class Device(Screenshot, Control, AppControl):
def send_notification(self, title, message):
if self.config.ENABLE_NOTIFICATIONS and sys.platform == 'win32':
from win10toast_persist import ToastNotifier
notify = ToastNotifier()
notify.show_toast(title, message, icon_path='assets/gooey/icon.ico', duration=None)
from notifypy import Notify
notification = Notify()
notification.title = title
notification.message = message
notification.application_name = "AzurLaneAutoScript"
notification.icon = "assets/gooey/icon.ico"
notification.send(block=False)
def handle_night_commission(self, hour=21, threshold=30):
"""