From 17610a1ff1e4164ea15280d0f16ba55bff479a59 Mon Sep 17 00:00:00 2001 From: Omelet <75904606+Omuretsu@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:04:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20kowaine=E3=82=B3=E3=83=9E=E3=83=B3?= =?UTF-8?q?=E3=83=89=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/kowaine.ts | 17 +++++++++++++++++ src/discord.ts | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 src/commands/kowaine.ts diff --git a/src/commands/kowaine.ts b/src/commands/kowaine.ts new file mode 100644 index 00000000..44b5fc38 --- /dev/null +++ b/src/commands/kowaine.ts @@ -0,0 +1,17 @@ +import { Discord } from '@/discord' +import { Message } from 'discord.js' +import { BaseCommand, Permission } from '.' + +export class KowaineCommand implements BaseCommand { + get name(): string { + return 'kowaine' + } + + get permissions(): Permission[] | null { + return null + } + + async execute(_discord: Discord, message: Message): Promise { + await message.reply('えんえん') + } +} diff --git a/src/discord.ts b/src/discord.ts index b09fb446..6472c9dc 100644 --- a/src/discord.ts +++ b/src/discord.ts @@ -7,6 +7,7 @@ import { BasslineCommand } from './commands/bassline' import { PingCommand } from './commands/ping' import { PotatoCommand } from './commands/potato' import { KawaiineCommand } from './commands/kawaiine' +import { KowaineCommand } from './commands/kowaine' export class Discord { public readonly client: Client @@ -16,6 +17,7 @@ export class Discord { new PingCommand(), new PotatoCommand(), new KawaiineCommand(), + new KowaineCommand(), ] constructor(config: Configuration) {