summaryrefslogtreecommitdiff
path: root/AyaBot/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r--AyaBot/plugins/bilibili.py3
-rw-r--r--AyaBot/plugins/covid19.py1
-rw-r--r--AyaBot/plugins/other.py1
3 files changed, 2 insertions, 3 deletions
diff --git a/AyaBot/plugins/bilibili.py b/AyaBot/plugins/bilibili.py
index 28cd0c9..674b7f8 100644
--- a/AyaBot/plugins/bilibili.py
+++ b/AyaBot/plugins/bilibili.py
@@ -39,10 +39,9 @@ def enc(x):
@on_command('bilibili_search_vd', aliases=['b站视频搜索', '批站视频搜索', 'B站视频搜索'], only_to_me=False)
async def bilibili_search_vd(session: CommandSession):
-
+
bi = session.current_arg.strip()
if not bi:
-
bi = session.get('bi', prompt='请输入bv号或av号')
str_av = 'av'
diff --git a/AyaBot/plugins/covid19.py b/AyaBot/plugins/covid19.py
index 0c0c22b..decb7c4 100644
--- a/AyaBot/plugins/covid19.py
+++ b/AyaBot/plugins/covid19.py
@@ -62,6 +62,7 @@ async def covid19(session: CommandSession):
)
)
except:
+ print('error')
await session.send('搜索出问题了呢,重新试试?')
@covid19.args_parser
diff --git a/AyaBot/plugins/other.py b/AyaBot/plugins/other.py
index 4a0c2c1..2ea8766 100644
--- a/AyaBot/plugins/other.py
+++ b/AyaBot/plugins/other.py
@@ -1,5 +1,4 @@
# -*- coding:utf-8 -*-
-import random
import nonebot
from nonebot import on_command, CommandSession, permission as perm