From 7fdeb72967ddf24740d20cbdbb5b2cfc183e25d4 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:58:18 +0000 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 68b201b..c6b5c83 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Lynx is a a simple Telegram bot made in Node.js. - You can edit this file and the ``package.json`` file as your needs. - The name of the command file will always be the command itself. - Example: ``whois.js`` will always be ``/whois`` on Telegram. +- Also, to see your changes, please restart the bot before making a issue. ## Develop or contribute with Lynx First, [make a fork of this repo](https://github.com/lucmsilva651/lynx/fork), or clone it with From ad6577bc6f28047ed9354df8897143746c27680d Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sun, 2 Jun 2024 01:05:07 +0000 Subject: [PATCH 2/3] Updated gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index c096e63..778eb0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.env +*.gpg +*.asc +*.txt node_modules \ No newline at end of file From 075dc00ad3e8dfade58d1a0e947ac9f6b880d05f Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sun, 2 Jun 2024 01:58:25 +0000 Subject: [PATCH 3/3] String changes + a little code fix on stats --- src/commands/help.js | 2 +- src/commands/stats.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/help.js b/src/commands/help.js index f61f063..13bab36 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -5,7 +5,7 @@ module.exports = function(bot, msg) { const lynxFullPhoto = 'https://graph.org/file/a77382dab4d62ba626806.jpg'; const message = `*Hello! I'm Lynx!*\n\nI'm a simple bot made entirely from scratch in Node.js by Lucas Gabriel (lucmsilva).\n\n` + - `I might be running on a GitHub Codespaces server (see /stats), so please refrain from overusing or spamming the bot!\n\n` + + `I am running on a *GitHub Codespaces* server (see /stats), so please refrain from overusing or spamming the bot!\n\n` + `*Some commands to test*: • */start*: start the bot • */help*: send this message diff --git a/src/commands/stats.js b/src/commands/stats.js index 2b0b0d2..3012985 100644 --- a/src/commands/stats.js +++ b/src/commands/stats.js @@ -32,6 +32,5 @@ module.exports = function (bot, msg) { bot.sendMessage(chatId, message, { parse_mode: 'Markdown' }) .catch(error => console.error('ERROR: Message cannot be sent:', error)); - console.log(`INFO: /stats executed by ${userName}, ${userId}`); };