mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Renamed the su list to the new admin method, Crew
This commit is contained in:
parent
befe544fc7
commit
55ecaba34b
@ -1,4 +1,4 @@
|
||||
// specific commands to bot admins
|
||||
// specific commands to the crew
|
||||
const Config = require('../props/config.json');
|
||||
const { getStrings } = require('../plugins/checklang.js');
|
||||
const os = require('os');
|
||||
@ -34,7 +34,7 @@ function getSystemInfo() {
|
||||
}
|
||||
|
||||
module.exports = (bot) => {
|
||||
bot.command('stats', (ctx) => {
|
||||
bot.command('getbotstats', (ctx) => {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
const userId = ctx.from.id || Strings.unKnown;
|
||||
if (Config.admins.includes(userId)) {
|
Loading…
x
Reference in New Issue
Block a user