Skip to content

Commit

Permalink
refactor: better naming for system folder files
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzow committed Sep 25, 2023
1 parent 8339f93 commit 738449a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/client/ExtendedClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
PresenceUpdateStatus
} from 'discord.js';
import { Command } from '../types/Command.js';
import { config } from '../systems/config.js';
import { handleCommands } from '../systems/command.js';
import { handleEvents } from '../systems/event.js';
import { config } from '../systems/configSystem.js';
import { handleCommands } from '../systems/commandHandler.js';
import { handleEvents } from '../systems/eventHandler.js';

export default class extends Client {
public commands: Collection<string, Command> = new Collection();
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ExtendedClient from './client/ExtendedClient.js';
import { processEnv } from './systems/config.js';
import { connectDB } from './systems/mongo.js';
import { processEnv } from './systems/configSystem.js';
import { connectDB } from './systems/mongoSystem.js';

processEnv();
await connectDB();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { REST, Routes } from 'discord.js';
import { config } from './config.js';
import { config } from './configSystem.js';
import { readdirSync } from 'fs';
import path from 'path';
import { Command } from '../types/Command.js';
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/systems/mongo.ts β†’ src/systems/mongoSystem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from 'mongoose';
import { config } from './config.js';
import { config } from './configSystem.js';

export async function connectDB() {
await mongoose
Expand Down

0 comments on commit 738449a

Please sign in to comment.