2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-24 10:58:19 +00:00

22 lines
430 B
JavaScript
Raw Normal View History

2017-09-24 18:05:16 +02:00
'use strict';
// Utils
const { link } = require('../../utils/tg');
// DB
2017-09-27 00:11:20 +03:30
const { getAdmins } = require('../../stores/user');
2017-09-24 18:05:16 +02:00
const staffHandler = async ctx => {
2017-09-27 00:11:20 +03:30
const admins = await getAdmins();
2017-09-24 18:05:16 +02:00
2017-09-27 00:12:21 +03:30
const links = admins.map(link);
2017-09-24 18:05:16 +02:00
const list = links.map(s => `${s}`).join('\n');
return ctx.replyWithHTML(`<b>Admins in the network:</b>\n\n${list}`, {
disable_notification: true,
});
};
module.exports = staffHandler;