Skip to content

Commit

Permalink
Merge pull request #1534 from CatalysmsServerManager/development
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele authored Aug 24, 2024
2 parents 80574c2 + 760ab0d commit 4867c05
Showing 1 changed file with 38 additions and 18 deletions.
56 changes: 38 additions & 18 deletions config/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
* https://sailsjs.com/config/custom
*/


// Load env vars
require('dotenv').config();
require("dotenv").config();

module.exports.custom = {

/**************************************************************************
* *
* Default settings for custom configuration used in your app. *
Expand All @@ -24,37 +22,59 @@ module.exports.custom = {
// mailgunApiKey: 'key-testkeyb183848139913858e8abd9a3',
// stripeSecret: 'sk_test_Zzd814nldl91104qor5911gjald',

logCheckInterval: parseInt(process.env.CSMM_LOG_CHECK_INTERVAL || '3000'),
logCheckInterval: parseInt(process.env.CSMM_LOG_CHECK_INTERVAL || "3000"),
logCheckIntervalSlowMode: 300000,
logCount: !Number.isNaN(parseInt(process.env.CSMM_LOG_COUNT)) ? parseInt(process.env.CSMM_LOG_COUNT) : 50,
logCount: !Number.isNaN(parseInt(process.env.CSMM_LOG_COUNT))
? parseInt(process.env.CSMM_LOG_COUNT)
: 50,

// Discord bot config
botOwners: process.env.DISCORDOWNERIDS ? process.env.DISCORDOWNERIDS.split(',') : [],
botOwners: process.env.DISCORDOWNERIDS
? process.env.DISCORDOWNERIDS.split(",")
: [],
botToken: process.env.DISCORDBOTTOKEN,
botEmbedLink: `${process.env.CSMM_HOSTNAME}`,
botEmbedTitle: 'CSMM',
botEmbedTitle: "CSMM",

discordFeedbackChannel: '336823516383150080',
discordFeedbackChannel: "336823516383150080",

adminSteamIds: (process.env.CSMM_ADMINS || '').split(',').map(str => str.trim()).filter(Boolean),
restartSteamIds: (process.env.CSMM_RESTART_ADMINS || '').split(',').map(str => str.trim()).filter(Boolean),
adminSteamIds: (process.env.CSMM_ADMINS || "")
.split(",")
.map((str) => str.trim())
.filter(Boolean),
restartSteamIds: (process.env.CSMM_RESTART_ADMINS || "")
.split(",")
.map((str) => str.trim())
.filter(Boolean),

// How often should we gather system usage statistics in ms
usageStatsInterval: 5000, //86400000, // 1 day

analyticsEnabled: process.env.ANALYTICS_ENABLED === 'false' ? false : true,
analyticsEnabled: process.env.ANALYTICS_ENABLED === "false" ? false : true,

// MOD VERSIONS
currentAllocs: '31',
currentCpm: '9.4',
currentAllocs: "31",
currentCpm: "9.4",

// Custom hooks

supportedHooks: ['playerConnected', 'playerDisconnected', 'chatMessage', 'playerDeath', 'playerJoined', 'playerLevel', 'zombieKilled', 'animalKilled', 'playerKilled', 'logLine', 'playerSuicide'],
supportedHooks: [
"playerConnected",
"playerDisconnected",
"chatMessage",
"playerDeath",
"playerJoined",
"playerLevel",
"zombieKilled",
"animalKilled",
"playerKilled",
"logLine",
"playerSuicide",
],

// DONORS
donorConfig: {
devDiscordServer: '336821518250147850',
devDiscordServer: "336821518250147850",
free: {
memUpdateKeepDataHours: 12,
maxTeleports: 3,
Expand Down Expand Up @@ -115,7 +135,7 @@ module.exports.custom = {
maxTeleports: 150,
maxServers: 10,
maxCustomCommands: 250,
economyKeepDataHours: 168 * 2,
economyKeepDataHours: 168,
maxCronJobs: 200,
playerTrackerKeepInventoryHours: 168,
playerTrackerKeepLocationHours: 240,
Expand All @@ -126,11 +146,11 @@ module.exports.custom = {
maxTeleports: 999999999,
maxServers: 20,
maxCustomCommands: 999999999,
economyKeepDataHours: 168 * 3,
economyKeepDataHours: 168,
maxCronJobs: 999999999,
playerTrackerKeepInventoryHours: 240,
playerTrackerKeepLocationHours: 336,
maxCustomNotifications: 999999999,
}
},
},
};

0 comments on commit 4867c05

Please sign in to comment.