Tryng to implement blocklist

This commit is contained in:
Lucas Gabriel 2024-06-01 23:17:57 +00:00
parent 755ae2c8f8
commit 4770d9a65d
2 changed files with 33 additions and 6 deletions

11
src/commands/.start.js Normal file
View file

@ -0,0 +1,11 @@
module.exports = function(bot, msg) {
const chatId = msg.chat.id;
const userName = msg.from.first_name;
const userId = msg.from.id;
const message = `Hello! I am Lynx!\nI was made with love by Lucas Gabriel (lucmsilva)!\n\nSee /help for the bot commands!`
bot.sendMessage(chatId, message)
.catch(error => console.error('ERROR: Message cannot be sent:', error));
console.log(`INFO: /start executed by ${userName}, ${userId}`)
}