2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-26 03:47:11 +00:00
GingerPlusPlus fdfbfa5727 Added /leave
2017-09-28 22:59:35 +02:00

31 lines
1012 B
JavaScript

'use strict';
const commandReference = `\
<b>Master commands</b>:
<code>/admin</code> - Makes the user admin.
<code>/unadmin</code> - Demotes the user from admin list.
<code>/leave</code> - Makes the bot leave the group cleanly.
<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;