refactor/config type declarations

This commit is contained in:
SowinskiBraeden committed 2023-10-21 22:49:04 -07:00
1 parent 1d1698c8c4
commit e731db682d
2 files changed
+22 -6

No files matched your search

+21 -5
View File
@@ -1,6 +1,22 @@
const package = require('../package.json');
require('dotenv').config();
const PresenceTypes = {
Playing: 0,
Streaming: 1,
Listening: 2,
Watching: 3,
Custom: 4,
Competing: 5,
};
const PresenceStatus = {
Online: "online",
Offline: "offline",
Idle: "idle",
DoNotDisturb: "dnd",
};
module.exports = {
Dev: process.env.Dev || "DEV.",
Version: package.version, // (major).(minor).(patch)
@@ -19,16 +35,16 @@ module.exports = {
Colors: {
Default: "#8a7c72",
DarkRed: "#ba0f0f",
Red: "#f55c5c",
Green: "#32a852",
Yellow: "#ffb01f"
Red: "#f55c5c",
Green: "#32a852",
Yellow: "#ffb01f"
},
Permissions: 2205281600,
mongoURI: process.env.mongoURI || "mongodb://localhost:27017",
dbo: process.env.dbo || "knoldus",
Presence: {
type: 3, // Playing = 0, Streaming = 1, Listening = 2, Watching = 3, Custom = 4, Competing = 5
type: PresenceTypes.Watching,
name: "DayZ Logs", // What message you want after type
status: "online", // You can show either "idle", "dnd", "online", or "offline"
status: PresenceStatus.Online
},
}