Code refactror
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user