diff --git a/src/Client.ts b/src/Client.ts index aae946b..f7bb5eb 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -10,7 +10,7 @@ const config = new Config() // Load pieces import './interaction-handlers/_load' import './listeners/_load' -import './Commands/_load' +import './commands/_load' const release = version .slice((semver.coerce(version)?.toString() + '-').length) diff --git a/src/Commands/_load.ts b/src/Commands/_load.ts index 8b49f57..9780751 100644 --- a/src/Commands/_load.ts +++ b/src/Commands/_load.ts @@ -1,6 +1,6 @@ -import './learning_data' import './deleteLearn' import './information' +import './learnedData' import './learn' import './help' import './list' diff --git a/src/Commands/learning_data.ts b/src/Commands/learnedData.ts similarity index 94% rename from src/Commands/learning_data.ts rename to src/Commands/learnedData.ts index cd3c5f5..d579876 100644 --- a/src/Commands/learning_data.ts +++ b/src/Commands/learnedData.ts @@ -10,7 +10,7 @@ import { ApplyOptions } from '@sapphire/decorators' usage: '머핀아 학습데이터량', }, }) -class LearnDataCommand extends Command { +class LearnedDataCommand extends Command { public registerApplicationCommands(registry: Command.Registry) { registry.registerChatInputCommand(builder => builder.setName(this.name).setDescription(this.description), @@ -50,7 +50,7 @@ ${user.username}님이 가르쳐준 단어: ${userData.length}개`) } void container.stores.loadPiece({ - piece: LearnDataCommand, - name: 'learn_data', + piece: LearnedDataCommand, + name: 'learnedData', store: 'commands', }) diff --git a/src/index.ts b/src/index.ts index 952c418..4af584e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -import('./Client').then(a => new a.default().login()) +import('./client').then(a => new a.default().login()) diff --git a/src/modules/index.ts b/src/modules/index.ts index ed2989a..76c7815 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -1,6 +1,6 @@ import previewWarning from './previewWarning' import { NODE_ENV } from './env' -import ChatBot from './ChatBot' +import ChatBot from './chatBot' import Config from './config' import noPerm from './noPerm'