mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
修复实时便签提醒正则匹配
This commit is contained in:
parent
9409fca9a8
commit
5dafd4cc8b
@ -23,7 +23,7 @@ async def main(bot,ev):
|
|||||||
else:
|
else:
|
||||||
gid = str(ev.user_id)
|
gid = str(ev.user_id)
|
||||||
uid, msg, user_id, use_cache = await get_uid_in_msg(ev)
|
uid, msg, user_id, use_cache = await get_uid_in_msg(ev)
|
||||||
find_remind_enable = re.search(r'(?P<action>开启提醒|关闭提醒|删除提醒)(.*)((?P<num>\d{1,3})|(?:.*))', msg)
|
find_remind_enable = re.search(r'(?P<action>开启提醒|关闭提醒|删除提醒)\s*((?P<num>\d{1,3})|(?:.*))', msg)
|
||||||
if find_remind_enable:
|
if find_remind_enable:
|
||||||
if ev.message_type == 'guild':
|
if ev.message_type == 'guild':
|
||||||
await bot.send(ev, '实时便签提醒功能暂时无法在频道内使用哦')
|
await bot.send(ev, '实时便签提醒功能暂时无法在频道内使用哦')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user