diff options
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r-- | AyaBot/plugins/covid19.py | 5 | ||||
-rw-r--r-- | AyaBot/plugins/translate.py | 7 | ||||
-rw-r--r-- | AyaBot/plugins/weather.py | 7 |
3 files changed, 2 insertions, 17 deletions
diff --git a/AyaBot/plugins/covid19.py b/AyaBot/plugins/covid19.py index 9917396..eee53de 100644 --- a/AyaBot/plugins/covid19.py +++ b/AyaBot/plugins/covid19.py @@ -1,11 +1,6 @@ # -*- coding:utf-8 -*- import re import json -<<<<<<< HEAD -======= -import sys -sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') ->>>>>>> af9b3ef683d28a2e4dd3bbc23cc1b2c455fc4fe2 import demjson import requests from os import path diff --git a/AyaBot/plugins/translate.py b/AyaBot/plugins/translate.py index 3cb396b..6bbb707 100644 --- a/AyaBot/plugins/translate.py +++ b/AyaBot/plugins/translate.py @@ -1,10 +1,5 @@ # -*- coding:utf-8 -*- import re -<<<<<<< HEAD -======= -import sys -sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') ->>>>>>> af9b3ef683d28a2e4dd3bbc23cc1b2c455fc4fe2 import demjson import requests from os import path @@ -46,4 +41,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]) + await session.send(re_msg[0])
\ No newline at end of file diff --git a/AyaBot/plugins/weather.py b/AyaBot/plugins/weather.py index 414b55c..69daa71 100644 --- a/AyaBot/plugins/weather.py +++ b/AyaBot/plugins/weather.py @@ -1,11 +1,6 @@ # -*- coding:utf-8 -*- import os import re -<<<<<<< HEAD -======= -import sys -sys.path.append(r'请改成你机器人的对应目录\Aya\AyaBot\plugins\Module') ->>>>>>> af9b3ef683d28a2e4dd3bbc23cc1b2c455fc4fe2 import json import requests from os import path @@ -220,4 +215,4 @@ async def _(session: CommandSession): if not stripped_arg: session.pause('要查询的城市不能为空,请重新输入') - session.state[session.current_key] = stripped_arg + session.state[session.current_key] = stripped_arg
\ No newline at end of file |