From ad9b4cf085e5f7ea9c6f2f7d7ebf04b466ea1d10 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sun, 9 Apr 2023 17:02:15 +0200 Subject: [PATCH] feat(bot): add info command --- packages/bot/src/commands/info.ts | 16 ++++++++++++++++ packages/bot/src/index.ts | 1 + 2 files changed, 17 insertions(+) create mode 100644 packages/bot/src/commands/info.ts diff --git a/packages/bot/src/commands/info.ts b/packages/bot/src/commands/info.ts new file mode 100644 index 0000000..6a03f37 --- /dev/null +++ b/packages/bot/src/commands/info.ts @@ -0,0 +1,16 @@ +import { InteractionResponseType } from "discord-api-types/v10"; +import { Command } from "../structs/Command"; + +new Command({ + name: "info", + acknowledge: false, + run: (ctx) => { + return ctx.respond({ + type: InteractionResponseType.ChannelMessageWithSource, + data: { + content: + "[Website](https://roles-bot.xhyrom.dev/) | [Discord](https://discord.gg/kFPKmEKeMS)", + }, + }); + }, +}); diff --git a/packages/bot/src/index.ts b/packages/bot/src/index.ts index 9e0d658..fca84c6 100644 --- a/packages/bot/src/index.ts +++ b/packages/bot/src/index.ts @@ -1,4 +1,5 @@ import "./commands/setup"; +import "./commands/info"; import "./components/setup"; import "./components/select"; import "./modals/setup";