From 7b017eb7f7dd20a8a2ea4dba2ac0798f7b3ef793 Mon Sep 17 00:00:00 2001 From: legop3 Date: Sat, 22 Nov 2025 03:12:02 -0500 Subject: [PATCH] change discord bot prefix --- server/src/services/discordBotService.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/services/discordBotService.js b/server/src/services/discordBotService.js index 7b3ae5a6..3603fe6f 100644 --- a/server/src/services/discordBotService.js +++ b/server/src/services/discordBotService.js @@ -97,11 +97,11 @@ function isAdminUser(discordId) { function formatHelp() { return [ '**Rover Bot Commands**', - '`rover help` — show this help', - '`rover status [id]` — show rover status (all or one)', - '`rover lock ` — lock a rover', - '`rover unlock ` — unlock a rover', - '`rover mode ` — change server mode', + '`rs help` — show this help', + '`rs status [id]` — show rover status (all or one)', + '`rs lock ` — lock a rover', + '`rs unlock ` — unlock a rover', + '`rs mode ` — change server mode', ].join('\n'); } @@ -152,13 +152,13 @@ async function handleModeCommand(message, mode) { async function handleCommand(message) { if (message.author.bot) return; const content = (message.content || '').trim(); - if (!content.toLowerCase().startsWith('rover')) return; + if (!content.toLowerCase().startsWith('rs')) return; if (!isAdminUser(message.author.id)) { return; // ignore non-admins } const tokens = content.split(/\s+/); - tokens.shift(); // remove "rover" + tokens.shift(); // remove prefix const action = (tokens.shift() || '').toLowerCase(); switch (action) { @@ -197,7 +197,7 @@ async function handleBridgeInbound(message) { if (String(message.channelId) !== String(bridgeChannelId)) return; if (message.author.bot) return; const content = (message.content || '').trim(); - if (content.toLowerCase().startsWith('rover')) return; // don't echo commands + if (content.toLowerCase().startsWith('rs')) return; // don't echo commands const nickname = message.member?.nickname || message.author?.globalName || message.author?.username || 'Discord'; const role = isAdminUser(message.author.id) ? 'admin' : 'user';