From 24f70fb78d98eaeecc81c29ba59167a1822ade5a Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Sat, 29 Aug 2020 10:12:37 +0800 Subject: add SauceNAO --- ATRI/plugins/switch.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ATRI/plugins') diff --git a/ATRI/plugins/switch.py b/ATRI/plugins/switch.py index 8abb408..47e6067 100644 --- a/ATRI/plugins/switch.py +++ b/ATRI/plugins/switch.py @@ -49,7 +49,10 @@ async def _(session: CommandSession): elif com == 'Kyaru': data["chouYou"] = "on" - + + elif com == 'SauceNAO': + data["saucenao_search"] = "on" + else: pass @@ -84,6 +87,9 @@ async def _(session: CommandSession): elif com == 'Kyaru': data["chouYou"] = "off" + elif com == 'SauceNAO': + data["saucenao_search"] = "on" + else: pass @@ -94,4 +100,4 @@ async def _(session: CommandSession): await session.send('Success!') else: - await session.send('恁哪位?') \ No newline at end of file + await session.send('恁哪位?') -- cgit v1.2.3