From cbf4900c5c3b1de65e55ce480d4b453091528e84 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 11 Apr 2021 15:03:35 +0800 Subject: =?UTF-8?q?=F0=9F=9A=80=E2=9C=A8=E2=9A=A1=EF=B8=8F=F0=9F=8E=A8?= =?UTF-8?q?=F0=9F=90=9B=20=E6=AD=A3=E5=BC=8F=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/github.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ATRI/plugins/github.py') 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: -- cgit v1.2.3