17 lines
578 B
TypeScript
17 lines
578 B
TypeScript
import { getLatestQuest } from "~/wov";
|
|
import { askForGrinders } from "~/quests";
|
|
import { replyError } from "~/discord";
|
|
import type { Command } from "./index";
|
|
|
|
export const resultCommand: Command = {
|
|
help: "Déclenche manuellement la publication des résultats de la dernière quête",
|
|
handler: async (message) => {
|
|
const quest = await getLatestQuest();
|
|
if (!quest) {
|
|
await replyError(message, "Impossible de récupérer la dernière quête.");
|
|
return;
|
|
}
|
|
await askForGrinders(quest, message.client);
|
|
},
|
|
};
|