mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-22 14:14:20 +00:00
fix(bot): default values for when values are undefined
This commit is contained in:
parent
47de72d0a4
commit
3ffd0d2b80
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@ import { processMessageAchievements } from './achievementManager.js';
|
||||||
|
|
||||||
const config = loadConfig();
|
const config = loadConfig();
|
||||||
|
|
||||||
const XP_COOLDOWN = config.leveling.xpCooldown * 1000;
|
const XP_COOLDOWN = config.leveling.xpCooldown || 60 * 1000;
|
||||||
const MIN_XP = config.leveling.minXpAwarded;
|
const MIN_XP = config.leveling.minXpAwarded || 5;
|
||||||
const MAX_XP = config.leveling.maxXpAwarded;
|
const MAX_XP = config.leveling.maxXpAwarded || 15;
|
||||||
|
|
||||||
const __dirname = path.resolve();
|
const __dirname = path.resolve();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue