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:
parent
2d9de464b6
commit
23e6b78f05
@ -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);
|
||||
|
@ -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'),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user