2024-05-24 20:57:44 -03:00
|
|
|
module.exports = function(bot, msg) {
|
|
|
|
const chatId = msg.chat.id;
|
|
|
|
const userName = msg.from.first_name;
|
|
|
|
const userId = msg.from.id;
|
2024-06-02 00:26:48 +00:00
|
|
|
const lynxFullPhoto = 'https://graph.org/file/a77382dab4d62ba626806.jpg';
|
2024-05-24 20:57:44 -03:00
|
|
|
|
2024-06-02 00:26:48 +00:00
|
|
|
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` +
|
2024-06-02 01:58:25 +00:00
|
|
|
`I am running on a *GitHub Codespaces* server (see /stats), so please refrain from overusing or spamming the bot!\n\n` +
|
2024-06-02 00:26:48 +00:00
|
|
|
`*Some commands to test*:
|
|
|
|
• */chatinfo*: send some information about the group
|
|
|
|
• */furry*: check if you are a furry
|
2024-06-01 22:45:40 -03:00
|
|
|
• */gay*: check if you are gay
|
|
|
|
• */help*: send this message
|
|
|
|
• */start*: start the bot
|
|
|
|
• */whois*: send some information about yourself\n\n` +
|
2024-06-02 00:26:48 +00:00
|
|
|
`*See my source code in:* [GitHub Repository](https://github.com/lucmsilva651/lynx)\n\n` +
|
|
|
|
`Thanks to all users, testers, contributors, and others. Without you, perhaps this bot wouldn't be possible ❤️`;
|
2024-05-24 20:57:44 -03:00
|
|
|
|
2024-06-02 00:26:48 +00:00
|
|
|
bot.sendPhoto(chatId, lynxFullPhoto, { caption: message, parse_mode: 'Markdown' })
|
|
|
|
.catch(error => console.error('ERROR: Message cannot be sent:', error));
|
2024-05-24 20:57:44 -03:00
|
|
|
console.log(`INFO: /help executed by ${userName}, ${userId}`);
|
|
|
|
}
|