forked from syntaxbullet/AuroraBot-discord
refactor: rename game.json to config.json and update file path references
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { readFileSync, existsSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
|
||||
const configPath = join(process.cwd(), 'src', 'config', 'game.json');
|
||||
const configPath = join(process.cwd(), 'src', 'config', 'config.json');
|
||||
|
||||
export interface GameConfigType {
|
||||
leveling: {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { readFileSync, writeFileSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { KyokoClient } from '@/lib/BotClient';
|
||||
|
||||
const configPath = join(process.cwd(), 'src', 'config', 'game.json');
|
||||
const configPath = join(process.cwd(), 'src', 'config', 'config.json');
|
||||
|
||||
export const configManager = {
|
||||
toggleCommand: (commandName: string, enabled: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user