Renamed the su list to the new admin method, Crew
This commit is contained in:
parent
befe544fc7
commit
55ecaba34b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
// specific commands to bot admins
|
// specific commands to the crew
|
||||||
const Config = require('../props/config.json');
|
const Config = require('../props/config.json');
|
||||||
const { getStrings } = require('../plugins/checklang.js');
|
const { getStrings } = require('../plugins/checklang.js');
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
|
@ -34,7 +34,7 @@ function getSystemInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = (bot) => {
|
module.exports = (bot) => {
|
||||||
bot.command('stats', (ctx) => {
|
bot.command('getbotstats', (ctx) => {
|
||||||
const Strings = getStrings(ctx.from.language_code);
|
const Strings = getStrings(ctx.from.language_code);
|
||||||
const userId = ctx.from.id || Strings.unKnown;
|
const userId = ctx.from.id || Strings.unKnown;
|
||||||
if (Config.admins.includes(userId)) {
|
if (Config.admins.includes(userId)) {
|
Loading…
Add table
Add a link
Reference in a new issue