|
|
@@ -5,10 +5,11 @@ import json
|
|
|
import sys
|
|
|
import os
|
|
|
|
|
|
-sys.path.append(os.path.join(os.path.abspath(__file__).split('auto')[0] + 'auto'))
|
|
|
+sys.path.append(os.path.join(os.path.abspath(__file__).split('auto_message')[0] + 'auto_message'))
|
|
|
from datetime import datetime
|
|
|
|
|
|
from utils.utils_send_gotify import GotifyNotifier
|
|
|
+from utils.utils_send_serverchan import ServerChanNotifier
|
|
|
|
|
|
from base.base_load_config import load_config, get_base_path
|
|
|
|
|
|
@@ -49,6 +50,9 @@ class AutoRemind:
|
|
|
# 推送到 message
|
|
|
GotifyNotifier(title, context).send_message()
|
|
|
|
|
|
+ # 推送到 serverchan
|
|
|
+ ServerChanNotifier(title, context.replace('\n', '\n\n')).send_message()
|
|
|
+
|
|
|
# 发送后 retry - 1
|
|
|
task_data = {
|
|
|
'title': task_data['title'],
|