summaryrefslogtreecommitdiff
path: root/ATRI/plugins
diff options
context:
space:
mode:
authorYiwen-Chan <[email protected]>2020-08-29 10:21:50 +0800
committerGitHub <[email protected]>2020-08-29 10:21:50 +0800
commit46bc4d0b0366ca8cda4cdacb893b427c65d5c63c (patch)
tree2c19663c1d408b53a0d896afa25b3e056d38af52 /ATRI/plugins
parent934d89ee277e0fcbd4bc5def9fcbfe8a92fc52d0 (diff)
downloadATRI-46bc4d0b0366ca8cda4cdacb893b427c65d5c63c.tar.gz
ATRI-46bc4d0b0366ca8cda4cdacb893b427c65d5c63c.tar.bz2
ATRI-46bc4d0b0366ca8cda4cdacb893b427c65d5c63c.zip
add SauceNAO
Diffstat (limited to 'ATRI/plugins')
-rw-r--r--ATRI/plugins/SauceNAO.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ATRI/plugins/SauceNAO.py b/ATRI/plugins/SauceNAO.py
index a80e23b..bacbae2 100644
--- a/ATRI/plugins/SauceNAO.py
+++ b/ATRI/plugins/SauceNAO.py
@@ -8,6 +8,7 @@ from aiohttp import ClientSession
from ATRI.modules.funcControl import checkSwitch, checkNoob # type: ignore
+API_KEY = config.SAUCENAO_API_KEY()
__plugin_name__ = "saucenao_search"
async def get_bytes(url, headers = None):
@@ -73,7 +74,7 @@ async def SaucenaoSearch(session: CommandSession):
img = re.findall(p, msg)
- task = SauceNAO(api_key='2cc2772ca550dbacb4c35731a79d341d1a143cb5')
+ task = SauceNAO(api_key=API_KEY)
data = task.search(url=img)
msg0 = ''
try: