Skip to content

Commit

Permalink
🔄️ UPDATE: Add comment and modify some configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed Apr 26, 2023
1 parent 7412cdb commit aca0d42
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions source/configs/data.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
/**
* Configuration
* This is the entire bot configuration file.
* Some items need to be configured to work properly.
* It is recommended to look at the .env or .env.example files
* to understand these values.
*/

require("dotenv").config();

const constants = require("./constants.json");
const filters = require("./filters.json");
const languages = require("./languages.json");

module.exports = {
// Check bot updates from Github.
"check_update": {
"enable": true,
"releases_url": process.env.RELEASES_URL || $RELEASES_URL
},

// The default for processing responses in chat.
"constants": constants,

// Filters for music.
"filters": filters,

// Bot language settings.
"language": {
"code": "en",
"support": languages
},

// For checking performance.
// This section is optional and is recommended to be disabled.
"monitoring": {
"config": {
"apiKey": process.env.MONITOR_API_KEY || $MONITOR_API_KEY,
Expand All @@ -19,7 +41,8 @@ module.exports = {
},
"enable": true
},
"owner": "618836889239158785",

// We use Firebase to deploy databases to the system.
"server": {
"apiKey": process.env.API_KEY || $API_KEY,
"authDomain": process.env.AUTH_DOMAIN || $AUTH_DOMAIN,
Expand All @@ -30,7 +53,29 @@ module.exports = {
"appId": process.env.APP_ID || $APP_ID,
"measurementId": process.env.MEASUREMENT_ID || $MEASUREMENT_ID
},
"testGuild": process.env.TEST_GUILD || $TEST_GUILD,

// Discord ID of the team.
"team": {
// For executing risky orders but does not have the same rights as the owner
"developer": process.env.DEVELOPER || $DEVELOPER,

// For use in processing suspicious requests.
"owner": process.env.OWNER || $OWNER,
},

// For setting application commands in test mode.
"test": {
// Useful when reaching the limits of Discord (Works only in test mode).
"application_commands": false,

// The id of the guild used for the test.
"guild": process.env.TEST_GUILD || $TEST_GUILD
},

// The bot token, which can be found on the Discord Developer page.
// https://discord.com/developers/applications
"token": process.env.TOKEN || $TOKEN,

// Last time that personal information was updated
"update": "2021-02-26T20:08:27.467Z"
};

0 comments on commit aca0d42

Please sign in to comment.