summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AyaBot/plugins/translate.py4
1 files changed, 2 insertions, 2 deletions
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])