Merge pull request 'fix: correct regex pattern for command argument matching in yandereMessageHandler' (#6) from yandere-fixes into main
Reviewed-on: https://gitea.fzzin.31718216.xyz/fzzinchemical/HotDog/pulls/6
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user