2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 20:57:52 +00:00

Display numberOfWarnsToBan instead of 3 in /unwarn

This commit is contained in:
GingerPlusPlus 2017-11-17 18:02:03 +01:00
parent f1215a995f
commit 900611fb75

View File

@ -3,6 +3,9 @@
// Utils
const { link, scheduleDeletion } = require('../../utils/tg');
// Config
const { numberOfWarnsToBan } = require('../../config.json');
// Bot
const { replyOptions } = require('../../bot/options');
@ -50,7 +53,7 @@ const unwarnHandler = async ({ message, reply, state, telegram }) => {
return reply(
`${link(user)} <b>pardoned</b> ${link(userToUnwarn)} ` +
`<b>for:</b>\n\n${allWarns[allWarns.length - 1]}` +
` (${allWarns.length - 1}/3)`,
` (${allWarns.length - 1}/${numberOfWarnsToBan})`,
replyOptions
);
};