mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-23 10:28:09 +00:00
15 lines
361 B
JavaScript
15 lines
361 B
JavaScript
'use strict';
|
|
|
|
const warn = require('../actions/warn');
|
|
|
|
const config = require('../config');
|
|
|
|
const reply_markup = { inline_keyboard: config.warnInlineKeyboard };
|
|
|
|
module.exports = {
|
|
async warn({ admin, reason, userToWarn }) {
|
|
const warnMessage = await warn({ admin, reason, userToWarn });
|
|
return this.replyWithHTML(warnMessage, { reply_markup });
|
|
},
|
|
};
|