summaryrefslogtreecommitdiff
path: root/ATRI/plugins/switch.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-08-29 12:09:14 +0800
committerGitHub <[email protected]>2020-08-29 12:09:14 +0800
commit0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7 (patch)
treea00c3e0803295c3cc1a388518f8ed92bf707e122 /ATRI/plugins/switch.py
parent3416dc3d29ad6b8def93a700dcf3c93d632eceaf (diff)
parent9dbe983c0332c0b56805fb2ce15c8db238afeb11 (diff)
downloadATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.tar.gz
ATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.tar.bz2
ATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.zip
Merge pull request #11 from Yiwen-Chan/master
[Update] new func SauceNAO
Diffstat (limited to 'ATRI/plugins/switch.py')
-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..71b7f62 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"] = "off"
+
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('恁哪位?')