Code refactror

This commit is contained in:
2023-12-30 16:53:44 +01:00
parent a4d96dd63d
commit 474a537797
21 changed files with 81 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
interface ProdConfig {
interface ProdEnv {
token: string | undefined
mongoURI: string | undefined
dev: string | undefined
@@ -6,14 +6,14 @@ interface ProdConfig {
redisURI: string | undefined
}
interface DevConfig {
interface DevEnv {
devtoken: string | undefined
clientid: string | undefined
devid: string | undefined
guildid: string | undefined
}
export default interface Config {
prod: ProdConfig
dev: DevConfig
export default interface Env {
prod: ProdEnv
dev: DevEnv
}

View File

@@ -5,7 +5,7 @@ import ContextMenu from "./ContextMenu"
import Event from "./Event"
import Modal from "./Modal"
import Config from "./Config"
import Env from "./Env"
import Cron from "./Cron"
import TimeZones from "./TimeZones"
@@ -13,7 +13,7 @@ import { Guild, GuildData } from "./Guild"
import { Player, PlayerData } from "./Player"
export {
Config,
Env,
Cron,
TimeZones,
Autocomplete,