<commit_before>'use strict';

// Utils
const { quietLink, scheduleDeletion } = require('../../utils/tg');

// DB
const { getAdmins } = require('../../stores/user');

/** @param { import('../../typings/context').ExtendedContext } ctx */
const staffHandler = async ctx => {
	const admins = await getAdmins();
	admins.sort((a, b) => a.first_name > b.first_name ? 1 : -1);

	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,
	}).then(scheduleDeletion());
};

module.exports = staffHandler;
<commit_msg>Fix html formatting in /staff<commit_after>'use strict';

// Utils
const { html, TgHtml } = require('../../utils/html');
const { quietLink, scheduleDeletion } = require('../../utils/tg');

// DB
const { getAdmins } = require('../../stores/user');

/** @param { import('../../typings/context').ExtendedContext } ctx */
const staffHandler = async ctx => {
	const admins = await getAdmins();
	admins.sort((a, b) => a.first_name > b.first_name ? 1 : -1);

	const links = admins.map(quietLink);

	const list = TgHtml.join('\n', links.map(s => html`⭐ ${s}`));

	return ctx.replyWithHTML(html`<b>Admins in the network:</b>\n\n${list}`, {
		disable_notification: true,
		disable_web_page_preview: true,
	}).then(scheduleDeletion());
};

module.exports = staffHandler;

{'fraction_non_alphanumeric': 0.2105997210599721, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '784002', 'n_tokens_mistral': 509, 'n_tokens_neox': 491, 'n_words': 105}