mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 21:00:03 +00:00
String changes + a little code fix on stats
This commit is contained in:
parent
ad6577bc6f
commit
075dc00ad3
@ -5,7 +5,7 @@ module.exports = function(bot, msg) {
|
|||||||
const lynxFullPhoto = 'https://graph.org/file/a77382dab4d62ba626806.jpg';
|
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` +
|
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*:
|
`*Some commands to test*:
|
||||||
• */start*: start the bot
|
• */start*: start the bot
|
||||||
• */help*: send this message
|
• */help*: send this message
|
||||||
|
@ -32,6 +32,5 @@ module.exports = function (bot, msg) {
|
|||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('ERROR: Message cannot be sent:', error));
|
.catch(error => console.error('ERROR: Message cannot be sent:', error));
|
||||||
|
|
||||||
console.log(`INFO: /stats executed by ${userName}, ${userId}`);
|
console.log(`INFO: /stats executed by ${userName}, ${userId}`);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user