mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-28 20:57:52 +00:00
1. It doesn't mention admins 2. It's more reliable (inline mentiones sometimes don't work)
23 lines
474 B
JavaScript
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;
|