From aedda260ece5839274e9c5cae95062e4675d3ce1 Mon Sep 17 00:00:00 2001 From: fzzinchemical Date: Thu, 10 Apr 2025 18:47:52 +0200 Subject: [PATCH] fix: correct regex pattern for command argument matching in yandereMessageHandler --- src/plugins/yandere/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/yandere/messages.ts b/src/plugins/yandere/messages.ts index b47e149..a2977ac 100644 --- a/src/plugins/yandere/messages.ts +++ b/src/plugins/yandere/messages.ts @@ -5,7 +5,7 @@ import { getPosts } from "@root/plugins/yandere/api/api.ts"; export async function yandereMessageHandler(bot: Bot, message: Message) { const command = message.content.split(" ").slice(1).join(" "); - const args = command.match(/(\[\.+\])/g) + const args = command.match(/(\[.+\])/g) if (command === "drop") { const embed = (await getPosts("[limit: 1]"))[0] if (embed === undefined) throw Error("undefined embed")