Skip to content

Commit

Permalink
feat: kawaiineコマンドを実装
Browse files Browse the repository at this point in the history
  • Loading branch information
Omuretsu committed Aug 27, 2023
1 parent 441a93a commit a1ebc89
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/commands/kawaiine.ts
Original file line number Diff line number Diff line change
@@ -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<boolean>): Promise<void> {
message.reply('カワイイネ!')
}
}
2 changes: 2 additions & 0 deletions src/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -14,6 +15,7 @@ export class Discord {
new BasslineCommand(),
new PingCommand(),
new PotatoCommand(),
new KawaiineCommand(),
]

constructor(config: Configuration) {
Expand Down

0 comments on commit a1ebc89

Please sign in to comment.