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
+19 -3

No files matched your search

+18 -2
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)
@@ -27,8 +43,8 @@ module.exports = {
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
},
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayzr-bot",
"version": "11.1.0",
"version": "11.1.1",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js",
"nodemonConfig": {