From 900611fb752e1ffc94e1bf94e9a997f7ad9f4ffd Mon Sep 17 00:00:00 2001 From: GingerPlusPlus Date: Fri, 17 Nov 2017 18:02:03 +0100 Subject: [PATCH] Display numberOfWarnsToBan instead of 3 in /unwarn --- handlers/commands/unwarn.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); };