feat: add result command to force asking

This commit is contained in:
Pihkaal
2025-06-28 15:37:29 +02:00
parent 8a73e1b407
commit 23e34dec77

View File

@@ -133,8 +133,14 @@ client.on("ready", async (client) => {
client.on("messageCreate", async (message) => { client.on("messageCreate", async (message) => {
if (message.author.bot) return; if (message.author.bot) return;
if (message.content.startsWith(`<@${client.user!.id}> ping`)) { if (message.content.startsWith(`<@${client.user!.id}>`)) {
await message.reply("pong"); const command = message.content.replace(`<@${client.user!.id}>`, "").trim();
if (command === "ping") {
await message.reply("pong");
} else if (command === "result") {
const quest = await getLatestQuest();
await askForGrinders(quest);
}
} }
}); });