diff options
-rw-r--r-- | ATRI/plugins/curse.py | 2 | ||||
-rw-r--r-- | ATRI/plugins/rich/data_source.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ATRI/plugins/curse.py b/ATRI/plugins/curse.py index 85fe6d9..d407b55 100644 --- a/ATRI/plugins/curse.py +++ b/ATRI/plugins/curse.py @@ -27,6 +27,8 @@ class Curse(Service): async def now() -> str: res = await request.get(URL) result = res.text + if "访问太频繁服务器受不了啦" in result: + result = "爪巴,吃我一圈火箭拳——" return result diff --git a/ATRI/plugins/rich/data_source.py b/ATRI/plugins/rich/data_source.py index 0724668..042fd8b 100644 --- a/ATRI/plugins/rich/data_source.py +++ b/ATRI/plugins/rich/data_source.py @@ -65,7 +65,7 @@ class Rich(Service): av = cls._bv_dec(bv).replace("av", "") else: - pattern = r"BV[a-zA-Z0-9]+" + pattern = r"[bB][vV][a-zA-Z0-9]+" try: bv = re.findall(pattern, msg)[0] except: |