refactor/config type declarations
This commit is contained in:
2 files changed
+19
-3
No files matched your search
+18
-2
@@ -1,6 +1,22 @@
|
|||||||
const package = require('../package.json');
|
const package = require('../package.json');
|
||||||
require('dotenv').config();
|
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 = {
|
module.exports = {
|
||||||
Dev: process.env.Dev || "DEV.",
|
Dev: process.env.Dev || "DEV.",
|
||||||
Version: package.version, // (major).(minor).(patch)
|
Version: package.version, // (major).(minor).(patch)
|
||||||
@@ -27,8 +43,8 @@ module.exports = {
|
|||||||
mongoURI: process.env.mongoURI || "mongodb://localhost:27017",
|
mongoURI: process.env.mongoURI || "mongodb://localhost:27017",
|
||||||
dbo: process.env.dbo || "knoldus",
|
dbo: process.env.dbo || "knoldus",
|
||||||
Presence: {
|
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
|
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
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "11.1.0",
|
"version": "11.1.1",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user