<commit_before>'use strict';

const commandReference = `\
<b>Master commands</b>:
<code>/admin</code> - promote replied-to person to admin,
<code>/unadmin</code> - demote admin,

<b>Admin commands</b>:
<code>/warn &lt;reason&gt;</code> - \
warn replied-to person and delete their message,
<code>/unwarn</code> - remove last warn from replied-to person,
<code>/nowarns</code> - remove all warn from replied-to person,
<code>/getwarns</code> - get all warnings from replied-to person,
<code>/ban &lt;reason&gt;</code> - \
ban replied-to person and delete their message,
<code>/unban</code> - unban replied-to person

<b>Commands for everyone</b>:
<code>/staff</code> - list admins,
<code>/groups</code> - list managed groups,
<code>/report</code> - report replied-to message to admins.
`;

const commandReferenceHandler = ({ chat, replyWithHTML }) => {
	if (chat.type !== 'private') {
		return null;
	}
	return replyWithHTML(commandReference);
};

module.exports = commandReferenceHandler;<commit_msg>updated commands info to match docs<commit_after>'use strict';

const commandReference = `\
<b>Master commands</b>:
<code>/admin</code> - Makes the user admin.
<code>/unadmin</code> - Demotes the user from admin list.

<b>Admin commands</b>:
<code>/warn &lt;reason&gt;</code> - Warns the user.
<code>/unwarn</code> - Removes the last warn from the user.
<code>/nowarns</code> - Clears warns for the user.
<code>/getwarns</code> - Shows a list of warns for the user.
<code>/ban &lt;reason&gt;</code> - Bans the user from groups.
<code>/unban</code> - Removes the user from ban list.

<b>Commands for everyone</b>:
<code>/staff</code> - Shows a list of admins.
<code>/groups</code> - Show a list of groups which the bot is admin in.
<code>/report</code> - Reports the replied-to message to admins.
`;

const commandReferenceHandler = ({ chat, replyWithHTML }) => {
	if (chat.type !== 'private') {
		return null;
	}
	return replyWithHTML(commandReference);
};

module.exports = commandReferenceHandler;
{'fraction_non_alphanumeric': 0.15815815815815815, 'fraction_numerical': 0.0, 'mean_word_length': 4.446866485013624, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 61, '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': '6619616', 'n_tokens_mistral': 645, 'n_tokens_neox': 638, 'n_words': 196}