diff --git a/handlers/commands/unwarn.js b/handlers/commands/unwarn.js index cba831a..9b71dcb 100644 --- a/handlers/commands/unwarn.js +++ b/handlers/commands/unwarn.js @@ -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)} pardoned ${link(userToUnwarn)} ` + `for:\n\n${allWarns[allWarns.length - 1]}` + - ` (${allWarns.length - 1}/3)`, + ` (${allWarns.length - 1}/${numberOfWarnsToBan})`, replyOptions ); };