Added Privacy Policy + changed commands layout to comply with new logger
This commit is contained in:
parent
612a48ca7f
commit
bc97336b67
11 changed files with 47 additions and 27 deletions
|
@ -2,8 +2,6 @@ const os = require('os');
|
|||
|
||||
module.exports = function (bot, msg) {
|
||||
const chatId = msg.chat.id;
|
||||
const userName = msg.from.first_name;
|
||||
const userId = msg.from.id;
|
||||
|
||||
function formatUptime(uptime) {
|
||||
const hours = Math.floor(uptime / 3600);
|
||||
|
@ -47,5 +45,4 @@ module.exports = function (bot, msg) {
|
|||
|
||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
||||
console.log(`INFO: /stats executed by ${userName}, ${userId}`);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue