mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
Merge pull request #150 from DancingSnow0517/nonebot2
在写开黑啦版本时的小派蒙,发现了个小虫
This commit is contained in:
commit
6bd3013533
@ -279,7 +279,7 @@ async def myzj_handler(event: MessageEvent, msg: Message = CommandArg()):
|
||||
elif month_now == 2:
|
||||
month_list = ['12', '1', '2']
|
||||
else:
|
||||
month_list = [str(month_now - 2), str(month_now - 1)]
|
||||
month_list = [str(month_now - 2), str(month_now - 1), str(month_now)]
|
||||
find_month = '(?P<month>' + '|'.join(month_list) + ')'
|
||||
match = re.search(find_month, msg)
|
||||
month = match.group('month') if match else month_now
|
||||
|
Loading…
Reference in New Issue
Block a user