2
0
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:
Pouria Ezzati
2017-09-24 23:24:34 +03:30
parent dffe3cc9af
commit 39145d35be
6 changed files with 14 additions and 13 deletions

View File

@@ -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;