summaryrefslogtreecommitdiff
path: root/ATRI/plugins
diff options
context:
space:
mode:
authorYiwen-Chan <[email protected]>2020-08-29 10:12:37 +0800
committerGitHub <[email protected]>2020-08-29 10:12:37 +0800
commit24f70fb78d98eaeecc81c29ba59167a1822ade5a (patch)
treeaad6eada04bf225234b18105402a4e8768eba5de /ATRI/plugins
parent3114c005b837e491b1533473b614b726072b9420 (diff)
downloadATRI-24f70fb78d98eaeecc81c29ba59167a1822ade5a.tar.gz
ATRI-24f70fb78d98eaeecc81c29ba59167a1822ade5a.tar.bz2
ATRI-24f70fb78d98eaeecc81c29ba59167a1822ade5a.zip
add SauceNAO
Diffstat (limited to 'ATRI/plugins')
-rw-r--r--ATRI/plugins/switch.py10
1 files changed, 8 insertions, 2 deletions
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('恁哪位?')