2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-22 18:08:51 +00:00
the-guard-bot/bot/context.js

15 lines
361 B
JavaScript
Raw Normal View History

2018-05-04 14:21:51 +02:00
'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 });
},
};