From 327333a5c65490d8ecae13314612731819bd31df Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 14 Jun 2020 00:36:30 +0800 Subject: Update welcome.py --- AyaBot/plugins/welcome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/welcome.py b/AyaBot/plugins/welcome.py index 8affdd8..3fcc1a9 100644 --- a/AyaBot/plugins/welcome.py +++ b/AyaBot/plugins/welcome.py @@ -4,7 +4,7 @@ from aiocqhttp.exceptions import ActionFailed bot=nonebot.get_bot() request_flag=False -master = bot.config.SUPERUSERS[0] +master = bot.config.SUPERUSERS #FROM Joenothing-lst -- cgit v1.2.3 From e035f8e52f00f3a56e931ac65577591a1c982f14 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 14 Jun 2020 00:38:42 +0800 Subject: Update weather.py --- AyaBot/plugins/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/weather.py b/AyaBot/plugins/weather.py index 158cde2..b068279 100644 --- a/AyaBot/plugins/weather.py +++ b/AyaBot/plugins/weather.py @@ -2,7 +2,7 @@ import os import re import sys -sys.path.append('D:\\code\\Aya\\AyaBot\\plugins\\Module') +sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') import json import requests from nonebot import on_command, CommandSession @@ -216,4 +216,4 @@ async def _(session: CommandSession): if not stripped_arg: session.pause('要查询的城市不能为空,请重新输入') - session.state[session.current_key] = stripped_arg \ No newline at end of file + session.state[session.current_key] = stripped_arg -- cgit v1.2.3 From 9f293d4f0e778940ac203c5124d380d7319dd926 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 14 Jun 2020 00:39:29 +0800 Subject: Update translate.py --- AyaBot/plugins/translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/translate.py b/AyaBot/plugins/translate.py index 916c723..d103430 100644 --- a/AyaBot/plugins/translate.py +++ b/AyaBot/plugins/translate.py @@ -1,7 +1,7 @@ # -*- coding:utf-8 -*- import re import sys -sys.path.append('D:\\code\\Aya\\AyaBot\\plugins\\Module') +sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') import demjson import requests from pprint import pformat, pprint @@ -42,4 +42,4 @@ async def _(session: CommandSession): msg=session.ctx['raw_message'][5:] re_msg = google_translate.translate(msg[:4999], to='en', source='zh-CN') if re_msg[0]!='': - await session.send(re_msg[0]) \ No newline at end of file + await session.send(re_msg[0]) -- cgit v1.2.3 From af9b3ef683d28a2e4dd3bbc23cc1b2c455fc4fe2 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 14 Jun 2020 00:41:14 +0800 Subject: Update covid19.py --- AyaBot/plugins/covid19.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/covid19.py b/AyaBot/plugins/covid19.py index d474ccd..393d31b 100644 --- a/AyaBot/plugins/covid19.py +++ b/AyaBot/plugins/covid19.py @@ -2,7 +2,7 @@ import re import json import sys -sys.path.append('D:\\code\\Aya\\AyaBot\\plugins\\Module') +sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') import demjson import requests from pprint import pformat, pprint -- cgit v1.2.3