mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-09-04 16:15:19 +00:00
commands now tell which admin did it
This commit is contained in:
@@ -57,8 +57,8 @@ const banHandler = async ({ chat, message, reply, telegram }) => {
|
||||
logError(process.env.DEBUG)(err);
|
||||
}
|
||||
|
||||
return reply(`🚫 ${link(userToBan)} <b>got banned</b>.\n\n` +
|
||||
`Reason: ${reason}`, replyOptions);
|
||||
return reply(`🚫 ${link(message.from)} <b>banned</b> ${link(userToBan)} ` +
|
||||
`<b>for:</b>\n\n${reason}`, replyOptions);
|
||||
};
|
||||
|
||||
module.exports = banHandler;
|
||||
|
Reference in New Issue
Block a user