Added chatinfo + typo fixes + whois update

This commit is contained in:
Lucas Gabriel 2024-05-25 12:37:34 -03:00
parent 318dce8e0b
commit 6d1a1ae745
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
3 changed files with 32 additions and 4 deletions

View file

@ -1,4 +1,3 @@
// start command handler
module.exports = function(bot, msg) {
const chatId = msg.chat.id;
const userName = msg.from.first_name;
@ -7,6 +6,6 @@ module.exports = function(bot, msg) {
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 send:', error));
.catch(error => console.error('ERROR: Message cannot be sent:', error));
console.log(`INFO: /start executed by ${userName}, ${userId}`)
}