Skip to content

Commit

Permalink
feat: remove importing
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Aug 31, 2023
1 parent 602ed4b commit 3982ee2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ import { BasslineCommand } from './commands/bassline'
import { PingCommand } from './commands/ping'
import { TmttmtCommand } from './commands/tmttmt'
import { PotatoCommand } from './commands/potato'
import { KowaineCommand } from './commands/kowaine'
import { KawaiineCommand } from './commands/kawaiine'
import { SuperCommand } from './commands/super'
import { PowaCommand } from './commands/powa'
import { AlphaCommand } from './commands/alpha'
import { GreetingEvent } from './events/greeting'
import { EnenEvent } from './events/enen'

export class Discord {
private config: Configuration
Expand All @@ -24,8 +21,6 @@ export class Discord {
new BasslineCommand(),
new PingCommand(),
new PotatoCommand(),
new KowaineCommand(),
new KawaiineCommand(),
new SuperCommand(),
new PowaCommand(),
new TmttmtCommand(),
Expand All @@ -44,10 +39,7 @@ export class Discord {
this.client.on('ready', this.onReady.bind(this))
this.client.on('messageCreate', this.onMessageCreate.bind(this))

const events: BaseDiscordEvent<any>[] = [
new GreetingEvent(this),
new EnenEvent(this),
]
const events: BaseDiscordEvent<any>[] = [new GreetingEvent(this)]
for (const event of events) {
event.register()
}
Expand Down

0 comments on commit 3982ee2

Please sign in to comment.