diff options
Diffstat (limited to 'ATRI/plugins/LearnRepo.py')
-rw-r--r-- | ATRI/plugins/LearnRepo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ATRI/plugins/LearnRepo.py b/ATRI/plugins/LearnRepo.py index 01c04c2..ae158f4 100644 --- a/ATRI/plugins/LearnRepo.py +++ b/ATRI/plugins/LearnRepo.py @@ -10,7 +10,7 @@ from ATRI.modules.error import errorBack bot = nonebot.get_bot() -master = config.MASTER() +master = config.SUPERUSERS __plugin_name__ = "LearnRepo" def now_time(): @@ -21,7 +21,7 @@ def now_time(): return now -@on_command('add_word', aliases = ['增加词汇', '删除词汇'], only_to_me = False) +@on_command('add_word', aliases = ['增加词汇', '删除词汇', '学习词汇'], only_to_me = False) async def _(session: CommandSession): if session.event.user_id == master: msg = session.event.raw_message.split(' ', 3) @@ -33,7 +33,7 @@ async def _(session: CommandSession): except: data = {} - if w_tpye == '增加词汇': + if w_tpye == '增加词汇' or w_tpye == '学习词汇': repo = msg[2] prob = int(msg[3]) if word in data.keys(): |