From ad97a84075904e36acce2644166e00be53b3e120 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Tue, 28 Apr 2020 20:37:45 +0800 Subject: =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B=E7=90=90?= =?UTF-8?q?=E7=A2=8E=E7=9A=84=E5=B0=8F=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AyaBot/plugins/awsl.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'AyaBot/plugins/awsl.py') diff --git a/AyaBot/plugins/awsl.py b/AyaBot/plugins/awsl.py index c476d59..2916d8c 100644 --- a/AyaBot/plugins/awsl.py +++ b/AyaBot/plugins/awsl.py @@ -1,14 +1,19 @@ +import random from nonebot import on_command, CommandSession -@on_command('阿这') +@on_command('阿这', only_to_me=False) async def _(session: CommandSession): await session.send('阿这') -@on_command('喵', aliases=['喵喵', '喵喵喵']) +@on_command('喵', aliases=['喵喵', '喵喵喵'], only_to_me=False) async def _(session: CommandSession): await session.send('喵~') -@on_command('奶宝', aliases=['@๑ ^ ₃•๑', '奶够翘']) +@on_command('奶宝', aliases=['@๑ ^ ₃•๑', '奶够翘'], only_to_me=False) async def _(session: CommandSession): await session.send('别叫了别叫了,8在') + +@on_command('抽签', only_to_me=False) +async def _(session: CommandSession): + await session.send(str(random.choice(['大凶', '小凶', '凶', '吉', '小吉', '中吉', '大吉']))) \ No newline at end of file -- cgit v1.2.3