Skip to content

Commit

Permalink
removed prefix from init, cache and model :(
Browse files Browse the repository at this point in the history
  • Loading branch information
d-shaun committed Nov 7, 2022
1 parent 5726cd8 commit ce47f1b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 92 deletions.
3 changes: 0 additions & 3 deletions src/handlers/Cache.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { Artists } from "./cache_components/Artists";
import { Config } from "./cache_components/Config";
import { Prefix } from "./cache_components/Prefix";
import CrownBot from "./CrownBot";

export default class CacheHandler {
#bot: CrownBot;
config: Config;
prefix: Prefix;
artists: Artists;

constructor(client: CrownBot) {
this.#bot = client;
this.config = new Config(this.#bot);
this.prefix = new Prefix(this.#bot);
this.artists = new Artists(this.#bot);
}
}
1 change: 0 additions & 1 deletion src/handlers/CrownBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default class CrownBot {
await this.register_commands();
await this.load_botconfig();
await this.cache.config.init(); /* cache server configs for the session */
await this.cache.prefix.init(); /* cache prefixes */
if (!this.commands.length || !this.mongoose)
throw "Failed initializing mongoose and/or commands. (never really happens tho)";
return this;
Expand Down
71 changes: 0 additions & 71 deletions src/handlers/cache_components/Prefix.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/models/Prefixes.ts

This file was deleted.

0 comments on commit ce47f1b

Please sign in to comment.