fix downloaders

This commit is contained in:
jxxghp
2024-07-02 11:00:55 +08:00
parent dfc5872087
commit c8fe6e4284
19 changed files with 311 additions and 140 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ class Slack:
_ds_url = f"http://127.0.0.1:{settings.PORT}/api/v1/message?token={settings.API_TOKEN}"
_channel = ""
def __init__(self, oauth_token: str, app_token: str, channel: str = ""):
def __init__(self, oauth_token: str, app_token: str, channel: str = "", **kwargs):
if not oauth_token or not app_token:
logger.error("Slack 配置不完整!")
return
try:
slack_app = App(token=oauth_token,