From fad6d42ee23dddd01cee3e3e3a91195fb65089dd Mon Sep 17 00:00:00 2001 From: Aster Fialla Date: Thu, 19 Feb 2026 19:32:37 -0500 Subject: [PATCH] updated to be enum --- src/bot.js | 2 +- src/enums.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot.js b/src/bot.js index 7a81c6c..d1e276d 100644 --- a/src/bot.js +++ b/src/bot.js @@ -45,7 +45,7 @@ client.on(Events.MessageCreate, async (message) => { }); } else { - await message.reply("Command not recognized. Try typing `pf;help` for command list."); + await message.reply(enums.err.COMMAND_NOT_RECOGNIZED); } } catch(error) { diff --git a/src/enums.js b/src/enums.js index 0cc2888..0a72cb0 100644 --- a/src/enums.js +++ b/src/enums.js @@ -20,6 +20,7 @@ helperEnums.err = { NOT_JSON_FILE: "Please attach a valid JSON file.", NO_MEMBERS_IMPORTED: 'No members were imported.', IMPORT_ERROR: "Please see attached file for logs on the member import process.", + COMMAND_NOT_RECOGNIZED: "Command not recognized. Try typing `pf;help` for command list." } helperEnums.help = {