feat: add result command to force asking
This commit is contained in:
@@ -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}>`)) {
|
||||||
|
const command = message.content.replace(`<@${client.user!.id}>`, "").trim();
|
||||||
|
if (command === "ping") {
|
||||||
await message.reply("pong");
|
await message.reply("pong");
|
||||||
|
} else if (command === "result") {
|
||||||
|
const quest = await getLatestQuest();
|
||||||
|
await askForGrinders(quest);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user