mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-29 13:17:56 +00:00
Display numberOfWarnsToBan instead of 3 in /unwarn
This commit is contained in:
parent
f1215a995f
commit
900611fb75
@ -3,6 +3,9 @@
|
|||||||
// Utils
|
// Utils
|
||||||
const { link, scheduleDeletion } = require('../../utils/tg');
|
const { link, scheduleDeletion } = require('../../utils/tg');
|
||||||
|
|
||||||
|
// Config
|
||||||
|
const { numberOfWarnsToBan } = require('../../config.json');
|
||||||
|
|
||||||
// Bot
|
// Bot
|
||||||
const { replyOptions } = require('../../bot/options');
|
const { replyOptions } = require('../../bot/options');
|
||||||
|
|
||||||
@ -50,7 +53,7 @@ const unwarnHandler = async ({ message, reply, state, telegram }) => {
|
|||||||
return reply(
|
return reply(
|
||||||
`❎ ${link(user)} <b>pardoned</b> ${link(userToUnwarn)} ` +
|
`❎ ${link(user)} <b>pardoned</b> ${link(userToUnwarn)} ` +
|
||||||
`<b>for:</b>\n\n${allWarns[allWarns.length - 1]}` +
|
`<b>for:</b>\n\n${allWarns[allWarns.length - 1]}` +
|
||||||
` (${allWarns.length - 1}/3)`,
|
` (${allWarns.length - 1}/${numberOfWarnsToBan})`,
|
||||||
replyOptions
|
replyOptions
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user