| 1000 | |
| 1001 | |
| 1002 | def add_notify_function(): |
| 1003 | notify_function = [] |
| 1004 | if push_config.get("BARK_PUSH"): |
| 1005 | notify_function.append(bark) |
| 1006 | if push_config.get("CONSOLE"): |
| 1007 | notify_function.append(console) |
| 1008 | if push_config.get("DD_BOT_TOKEN") and push_config.get("DD_BOT_SECRET"): |
| 1009 | notify_function.append(dingding_bot) |
| 1010 | if push_config.get("FSKEY"): |
| 1011 | notify_function.append(feishu_bot) |
| 1012 | if push_config.get("GOBOT_URL") and push_config.get("GOBOT_QQ"): |
| 1013 | notify_function.append(go_cqhttp) |
| 1014 | if push_config.get("GOTIFY_URL") and push_config.get("GOTIFY_TOKEN"): |
| 1015 | notify_function.append(gotify) |
| 1016 | if push_config.get("IGOT_PUSH_KEY"): |
| 1017 | notify_function.append(iGot) |
| 1018 | if push_config.get("PUSH_KEY"): |
| 1019 | notify_function.append(serverJ) |
| 1020 | if push_config.get("DEER_KEY"): |
| 1021 | notify_function.append(pushdeer) |
| 1022 | if push_config.get("CHAT_URL") and push_config.get("CHAT_TOKEN"): |
| 1023 | notify_function.append(chat) |
| 1024 | if push_config.get("PUSH_PLUS_TOKEN"): |
| 1025 | notify_function.append(pushplus_bot) |
| 1026 | if push_config.get("WE_PLUS_BOT_TOKEN"): |
| 1027 | notify_function.append(weplus_bot) |
| 1028 | if push_config.get("QMSG_KEY") and push_config.get("QMSG_TYPE"): |
| 1029 | notify_function.append(qmsg_bot) |
| 1030 | if push_config.get("QYWX_AM"): |
| 1031 | notify_function.append(wecom_app) |
| 1032 | if push_config.get("QYWX_KEY"): |
| 1033 | notify_function.append(wecom_bot) |
| 1034 | if push_config.get("TG_BOT_TOKEN") and push_config.get("TG_USER_ID"): |
| 1035 | notify_function.append(telegram_bot) |
| 1036 | if ( |
| 1037 | push_config.get("AIBOTK_KEY") |
| 1038 | and push_config.get("AIBOTK_TYPE") |
| 1039 | and push_config.get("AIBOTK_NAME") |
| 1040 | ): |
| 1041 | notify_function.append(aibotk) |
| 1042 | if ( |
| 1043 | push_config.get("SMTP_SERVER") |
| 1044 | and push_config.get("SMTP_SSL") |
| 1045 | and push_config.get("SMTP_EMAIL") |
| 1046 | and push_config.get("SMTP_PASSWORD") |
| 1047 | and push_config.get("SMTP_NAME") |
| 1048 | ): |
| 1049 | notify_function.append(smtp) |
| 1050 | if push_config.get("PUSHME_KEY"): |
| 1051 | notify_function.append(pushme) |
| 1052 | if ( |
| 1053 | push_config.get("CHRONOCAT_URL") |
| 1054 | and push_config.get("CHRONOCAT_QQ") |
| 1055 | and push_config.get("CHRONOCAT_TOKEN") |
| 1056 | ): |
| 1057 | notify_function.append(chronocat) |
| 1058 | if push_config.get("WEBHOOK_URL") and push_config.get("WEBHOOK_METHOD"): |
| 1059 | notify_function.append(custom_notify) |