Skip to content

Commit

Permalink
feat: kowaineコマンドを実装
Browse files Browse the repository at this point in the history
  • Loading branch information
Omuretsu committed Aug 27, 2023
1 parent a1ebc89 commit 17610a1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/commands/kowaine.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 KowaineCommand implements BaseCommand {
get name(): string {
return 'kowaine'
}

get permissions(): Permission[] | null {
return null
}

async execute(_discord: Discord, message: Message<boolean>): Promise<void> {
await message.reply('えんえん')
}
}
2 changes: 2 additions & 0 deletions src/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,6 +17,7 @@ export class Discord {
new PingCommand(),
new PotatoCommand(),
new KawaiineCommand(),
new KowaineCommand(),
]

constructor(config: Configuration) {
Expand Down

0 comments on commit 17610a1

Please sign in to comment.