generated from nhcarrigan/template
feat: initial prototype #1
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
import { AtpAgent } from "@atproto/api";
|
import { AtpAgent } from "@atproto/api";
|
||||||
import pkg from "@slack/bolt";
|
import pkg from "@slack/bolt";
|
||||||
import { Client, Events } from "discord.js";
|
import { Client, Events, MessageFlags } from "discord.js";
|
||||||
import { scheduleJob } from "node-schedule";
|
import { scheduleJob } from "node-schedule";
|
||||||
import { serve } from "./server/serve.js";
|
import { serve } from "./server/serve.js";
|
||||||
import { getMommy } from "./utils/getMommy.js";
|
import { getMommy } from "./utils/getMommy.js";
|
||||||
@ -25,7 +25,7 @@ discord.on(Events.InteractionCreate, async(interaction) => {
|
|||||||
if (!interaction.isChatInputCommand()) {
|
if (!interaction.isChatInputCommand()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await interaction.deferReply();
|
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
|
||||||
const name = interaction.options.getString("name");
|
const name = interaction.options.getString("name");
|
||||||
const response = await getMommy(name ?? undefined);
|
const response = await getMommy(name ?? undefined);
|
||||||
await interaction.editReply(response);
|
await interaction.editReply(response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user