summaryrefslogtreecommitdiff
path: root/ATRI
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI')
-rw-r--r--ATRI/plugins/funny.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/funny.py b/ATRI/plugins/funny.py
index 574aaa1..11e6f39 100644
--- a/ATRI/plugins/funny.py
+++ b/ATRI/plugins/funny.py
@@ -97,8 +97,8 @@ async def _eat(bot: Bot, event: MessageEvent) -> None:
msg = str(event.message).strip()
user = event.user_id
user_n = event.sender.nickname
- arg = re.findall(r"[今|明|后|大后]天(.*?)吃什么", msg)[0]
- nd = re.match(r"[今|明|后|大后][天]", msg)[0]
+ arg = re.findall(r"(今|明|后|大后)天(.*?)吃什么", msg)[0]
+ nd = re.match(r"(今|明|后|大后)天", msg)[0]
if arg == "中午":
a = f"LdS4K6/{randint(0, 999999)}"