From 4da63501beeb71606f912de12d4ea9799a3c1022 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sat, 25 May 2024 12:59:05 -0300 Subject: [PATCH] Added a comment in chatinfo --- src/commands/chatinfo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/chatinfo.js b/src/commands/chatinfo.js index 1f42dd6..a1b4ab0 100644 --- a/src/commands/chatinfo.js +++ b/src/commands/chatinfo.js @@ -20,7 +20,8 @@ module.exports = function(bot, msg) { } else { chatHandleOutput = `Chat handle: none (private group)`; } - + + // if chatName returns undefined, the chat is not a group or channel if (chatName) { chatNameOutput = `Chat name: ${chatName}\n${chatHandleOutput}\nChat ID: ${chatId}\n\n${isForumOutput}`; } else {