Added Privacy Policy + changed commands layout to comply with new logger

This commit is contained in:
Lucas Gabriel 2024-06-02 12:54:12 +00:00
parent 612a48ca7f
commit bc97336b67
11 changed files with 47 additions and 27 deletions

View file

@ -1,12 +1,12 @@
module.exports = function(bot, msg) {
const chatId = msg.chat.id;
const userName = msg.from.first_name;
const userId = msg.from.id;
const lynxProfilePhoto = 'https://graph.org/file/10452df450f13ffb968c5.jpg';
const message = `*Hello! I am Lynx!*\nI was made with love by Lucas Gabriel (lucmsilva)!\n\nSee /help for the bot commands!`;
const message = `*Hello! I am Lynx!*\nI was made with love by Lucas Gabriel (lucmsilva)!\n\n` +
`*Before using, you will need to read the privacy policy (/privacy) ` +
`to understand where your data goes when using this bot.*\n\n` +
`Also, you can use /help to show the bot commands!`;
bot.sendPhoto(chatId, lynxProfilePhoto, { caption: message, parse_mode: 'Markdown' } )
.catch(error => console.error('WARN: Message cannot be sent:', error));
console.log(`INFO: /start executed by ${userName}, ${userId}`);
}