From 98ed84aa2bae5bf45940d203fd55515ba273e5f2 Mon Sep 17 00:00:00 2001 From: Chris Ham <431647+greenham@users.noreply.github.com> Date: Sat, 16 Aug 2025 21:50:35 -0700 Subject: [PATCH] Fix reboot command configuration reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update reboot command to use ConfigManager instead of raw config - Fix broken adminUserId reference that was causing command errors - Use getBotConfig() method to properly access admin configuration - Ensure reboot command works with hybrid database/file config system 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/commands/prefix/reboot.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/prefix/reboot.js b/src/commands/prefix/reboot.js index a8e020e..3d650e5 100644 --- a/src/commands/prefix/reboot.js +++ b/src/commands/prefix/reboot.js @@ -1,12 +1,15 @@ -const config = require("../../config/config"); +const configManager = require("../../config/config"); module.exports = { name: "reboot", description: "Reboot the bot (admin only)", async execute(message, args, guildConfig) { + // Get bot configuration + const botConfig = configManager.getBotConfig(); + // Check if user is the bot admin - if (message.author.id !== config.discord.adminUserId) { + if (message.author.id !== botConfig.discord.adminUserId) { return; }