2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 13:17:56 +00:00

Alias !report and !admins? to /report

This commit is contained in:
GingerPlusPlus 2018-05-16 19:09:27 +02:00
parent 2d9de464b6
commit 23e6b78f05
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,6 @@ composer.command('user', deleteMessage, userHandler);
composer.command('ban', deleteMessage, banHandler);
composer.command('unban', deleteMessage, unbanHandler);
composer.command('report', deleteMessage, reportHandler);
composer.hears(/^@admins?\s?/i, deleteMessage, reportHandler);
composer.command('staff', deleteMessage, staffHandler);
composer.command('link', deleteMessage, linkHandler);
composer.command('groups', deleteMessage, groupsHandler);

View File

@ -1,10 +1,11 @@
'use strict';
const { compose } = require('telegraf');
const { compose, hears } = require('telegraf');
/* eslint-disable global-require */
module.exports = compose([
hears(/^(?:!report|[@!]admins?)\b/i, require('../commands/report')),
require('./runCustomCmd'),
require('./groupLinker'),
]);