refactor/config type declarations
This commit is contained in:
2 files changed
+22
-6
No files matched your search
+21
-5
@@ -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)
|
||||||
@@ -19,16 +35,16 @@ module.exports = {
|
|||||||
Colors: {
|
Colors: {
|
||||||
Default: "#8a7c72",
|
Default: "#8a7c72",
|
||||||
DarkRed: "#ba0f0f",
|
DarkRed: "#ba0f0f",
|
||||||
Red: "#f55c5c",
|
Red: "#f55c5c",
|
||||||
Green: "#32a852",
|
Green: "#32a852",
|
||||||
Yellow: "#ffb01f"
|
Yellow: "#ffb01f"
|
||||||
},
|
},
|
||||||
Permissions: 2205281600,
|
Permissions: 2205281600,
|
||||||
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