Renamed the su list to the new admin method, Crew

This commit is contained in:
Lucas Gabriel 2024-07-27 12:19:35 -03:00
parent befe544fc7
commit 55ecaba34b
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -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)) {