'use strict';
const commandReference = `\
Master commands:
/admin
- promote replied-to person to admin,
/unadmin
- demote admin,
Admin commands:
/warn <reason>
- \
warn replied-to person and delete their message,
/unwarn
- remove last warn from replied-to person,
/nowarns
- remove all warn from replied-to person,
/getwarns
- get all warnings from replied-to person,
/ban <reason>
- \
ban replied-to person and delete their message,
/unban
- unban replied-to person
Commands for everyone:
/staff
- list admins,
/groups
- list managed groups,
/report
- report replied-to message to admins.
`;
const commandReferenceHandler = ({ chat, replyWithHTML }) => {
if (chat.type !== 'private') {
return null;
}
return replyWithHTML(commandReference);
};
module.exports = commandReferenceHandler;