diff options
author | Kyomotoi <[email protected]> | 2021-04-11 15:03:35 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-04-11 15:03:35 +0800 |
commit | cbf4900c5c3b1de65e55ce480d4b453091528e84 (patch) | |
tree | 6bde5ad2d8f6f4010cb317b2b72be36f17b503d4 /ATRI/plugins/github.py | |
parent | 212424da74fecbd77c9824e422ea8b028b330c9e (diff) | |
download | ATRI-cbf4900c5c3b1de65e55ce480d4b453091528e84.tar.gz ATRI-cbf4900c5c3b1de65e55ce480d4b453091528e84.tar.bz2 ATRI-cbf4900c5c3b1de65e55ce480d4b453091528e84.zip |
🚀✨⚡️🎨🐛 正式推送
Diffstat (limited to 'ATRI/plugins/github.py')
-rw-r--r-- | ATRI/plugins/github.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ATRI/plugins/github.py b/ATRI/plugins/github.py index ce118cd..c238b69 100644 --- a/ATRI/plugins/github.py +++ b/ATRI/plugins/github.py @@ -3,7 +3,6 @@ import json from nonebot.adapters.cqhttp import Bot, MessageEvent from ATRI.service import Service as sv -from ATRI.rule import is_block, is_in_dormant from ATRI.utils.request import get_bytes from ATRI.exceptions import RequestTimeOut @@ -11,7 +10,7 @@ from ATRI.exceptions import RequestTimeOut URL = "https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}" -github_issues = sv.on_message(rule=is_block() & is_in_dormant()) +github_issues = sv.on_message() @github_issues.handle() async def _github_issues(bot: Bot, event: MessageEvent) -> None: |