2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 20:57:52 +00:00
GingerPlusPlus b0075f2065 Used new quietLink instead of link in /staff
1. It doesn't mention admins
2. It's more reliable (inline mentiones sometimes don't work)
2017-10-22 17:33:21 +02:00

23 lines
474 B
JavaScript

'use strict';
// Utils
const { quietLink } = require('../../utils/tg');
// DB
const { getAdmins } = require('../../stores/user');
const staffHandler = async ctx => {
const admins = await getAdmins();
const links = admins.map(quietLink);
const list = links.map(s => `${s}`).join('\n');
return ctx.replyWithHTML(`<b>Admins in the network:</b>\n\n${list}`, {
disable_notification: true,
disable_web_page_preview: true,
});
};
module.exports = staffHandler;