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:
parent
f1215a995f
commit
900611fb75
@ -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
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user