Skip to content

Commit

Permalink
refactor: better naming
Browse files Browse the repository at this point in the history
Signed-off-by: Anıl Mısırlıoğlu <misirlioglisamet@gmail.com>
  • Loading branch information
anilmisirlioglu committed May 14, 2021
1 parent f94667b commit 093e66b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Asena.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Asena extends SuperClient{
})

// Load all languages
this.getLanguageManager().run()
this.getLanguageManager().init()

// Load all commands
this.getCommandHandler().registerAllCommands()
Expand Down
2 changes: 1 addition & 1 deletion src/MongoDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class MongoDB{

private logger: Logger = new Logger(MongoDB.name.toLowerCase())

public constructor(options: ConnectionOptions = {
constructor(options: ConnectionOptions = {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
Expand Down
4 changes: 1 addition & 3 deletions src/language/Language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export default class Language{
public full: string

/** Language strings */
public strings: {
[key: string]: string | string[]
} = {}
public strings: StringTree = {}

constructor(info: LanguageInfo){
this.version = new Version(info.version)
Expand Down
2 changes: 1 addition & 1 deletion src/language/LanguageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class LanguageManager{

constructor(private client: SuperClient){}

run(){
init(){
const files = readdirSync(LanguageManager.LOCALE_PATH)
if(!files.length) this.client.logger.error('Language files not found.')

Expand Down
2 changes: 1 addition & 1 deletion src/setup/SetupPhase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface SetupPhaseOptions{

export default class SetupPhase{

public constructor(private readonly options: SetupPhaseOptions){}
constructor(private readonly options: SetupPhaseOptions){}

public get message(): string{
const message = this.options.message
Expand Down

0 comments on commit 093e66b

Please sign in to comment.