From a1ebc89b4035d33ec44c86f4c4e471a6e3660fb7 Mon Sep 17 00:00:00 2001 From: Omelet <75904606+Omuretsu@users.noreply.github.com> Date: Sun, 27 Aug 2023 19:55:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20kawaiine=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/kawaiine.ts | 17 +++++++++++++++++ src/discord.ts | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 src/commands/kawaiine.ts diff --git a/src/commands/kawaiine.ts b/src/commands/kawaiine.ts new file mode 100644 index 00000000..fa4f48b8 --- /dev/null +++ b/src/commands/kawaiine.ts @@ -0,0 +1,17 @@ +import { Discord } from '@/discord' +import { Message } from 'discord.js' +import { BaseCommand, Permission } from '.' + +export class KawaiineCommand implements BaseCommand { + get name(): string { + return 'kawaiine' + } + + get permissions(): Permission[] | null { + return null + } + + async execute(_discord: Discord, message: Message): Promise { + message.reply('カワイイネ!') + } +} diff --git a/src/discord.ts b/src/discord.ts index 3023fc79..b09fb446 100644 --- a/src/discord.ts +++ b/src/discord.ts @@ -6,6 +6,7 @@ import { BaseCommand } from './commands' import { BasslineCommand } from './commands/bassline' import { PingCommand } from './commands/ping' import { PotatoCommand } from './commands/potato' +import { KawaiineCommand } from './commands/kawaiine' export class Discord { public readonly client: Client @@ -14,6 +15,7 @@ export class Discord { new BasslineCommand(), new PingCommand(), new PotatoCommand(), + new KawaiineCommand(), ] constructor(config: Configuration) {