䙯牴湩瑥
This commit is contained in:
parent
d3f88873f0
commit
a36dece7d4
17 changed files with 22 additions and 22 deletions
|
@ -7,7 +7,7 @@ import botVersion from '../util/version.js'
|
|||
import version from '../version.js'
|
||||
import { bots } from '../index.js'
|
||||
|
||||
const aboutBot = function (c) {
|
||||
const aboutBot = c => {
|
||||
c.reply({
|
||||
translate: getMessage(c.lang, 'command.about.author'),
|
||||
color: c.colors.secondary,
|
||||
|
@ -101,7 +101,7 @@ const os2 = function (o2, l) {
|
|||
}
|
||||
}
|
||||
|
||||
const aboutServer = function (c) {
|
||||
const aboutServer = c => {
|
||||
const displayInfo = function (name, infoFunc) {
|
||||
let thisItem
|
||||
try {
|
||||
|
@ -225,7 +225,7 @@ const aboutServer = function (c) {
|
|||
})
|
||||
}
|
||||
|
||||
const displayServerList = function (c) {
|
||||
const displayServerList = c => {
|
||||
bots.forEach((item, i) => {
|
||||
if (c.bot.id === i && c.bot.host.options.hideLocally) return
|
||||
if (item.host.options && item.host.options.hidden && c.verify !== 2 && c.bot.id !== i) return
|
||||
|
@ -268,7 +268,7 @@ const displayServerList = function (c) {
|
|||
})
|
||||
}
|
||||
|
||||
const execute = function (c) {
|
||||
const execute = c => {
|
||||
let subcmd
|
||||
if (c.args.length >= 1) subcmd = c.args[0].toLowerCase()
|
||||
if (subcmd === 'servers') subcmd = 'serverlist'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
c.bot.ccq.push(c.args.join(' '))
|
||||
}
|
||||
const consoleIndex = true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
let subcmd
|
||||
if (c.args.length >= 1) subcmd = c.args.splice(0, 1)[0].toLowerCase()
|
||||
switch (subcmd) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { inspect } from 'node:util'
|
|||
import settings from '../settings.js'
|
||||
import chatlog from '../util/chatlog.js'
|
||||
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
const payload = c.args.join(' ')
|
||||
if (!settings.disableLogging && !settings.disableEvalLogging) chatlog('eval', `${c.host}:${c.port} ${c.username} (${c.uuid}) Payload: ${payload}`)
|
||||
let result
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
let subcmd
|
||||
if (c.args.length >= 1) subcmd = c.args.splice(0, 1)[0].toLowerCase()
|
||||
console.log(subcmd)
|
||||
|
|
|
@ -7,7 +7,7 @@ const sortHelp = function sortHelp (c1, c2) {
|
|||
return level1 - level2
|
||||
}
|
||||
|
||||
const printHelp = (c) => {
|
||||
const printHelp = c => {
|
||||
const commandList = []
|
||||
const permsN = getMessage(c.lang, 'command.help.permsNormal')
|
||||
const permsT = getMessage(c.lang, 'command.help.permsTrusted')
|
||||
|
@ -119,7 +119,7 @@ const printHelp = (c) => {
|
|||
})
|
||||
}
|
||||
|
||||
const printCmdHelp = (c) => {
|
||||
const printCmdHelp = c => {
|
||||
let cmd
|
||||
if (c.args.length >= 1) cmd = c.args[0].toLowerCase()
|
||||
if (!cmds[cmd] || (cmds[cmd].hidden && c.type !== 'console')) {
|
||||
|
@ -224,7 +224,7 @@ const printCmdHelp = (c) => {
|
|||
})
|
||||
}
|
||||
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
if (c.args.length > 0) {
|
||||
printCmdHelp(c)
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
c.bot._client.end()
|
||||
}
|
||||
const consoleIndex = true
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { bots } from '../index.js'
|
||||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
let host = c.host
|
||||
let port = c.port
|
||||
if (c.bot.host.options && c.bot.host.options.hidden) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
c.bot.sc_tasks.cc.failed = true
|
||||
}
|
||||
const consoleIndex = true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
process.exit(0)
|
||||
}
|
||||
const aliases = ['reboot']
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import settings from '../settings.js'
|
||||
import version from '../version.js'
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
if (c.verify < 1) {
|
||||
c.bot.tellraw('@a', {
|
||||
translate: '%s %s: %s',
|
||||
|
|
|
@ -3,7 +3,7 @@ import { getMessage } from '../util/lang.js'
|
|||
Please note: I had this idea before I found out it was in other bots.
|
||||
Please do not get mad at me because your bot also has this (or a similar) command.
|
||||
*/
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
if (c.args[0] == 'set') {
|
||||
const scale = Math.min(Math.max(+c.args[1], 0.0625), 16)
|
||||
c.reply({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
process.exit(1)
|
||||
}
|
||||
const aliases = ['exit']
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
// Blank template
|
||||
/*
|
||||
c.send(text, user?): Send text to all ("/tellraw @a")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
const reply = function (name, item) {
|
||||
return {
|
||||
translate: '%s: %s',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
const execute = function (c) {
|
||||
const execute = c => {
|
||||
let uuid
|
||||
if (c.type === 'console') {
|
||||
uuid = c.bot._client.uuid
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
const execute = (c) => {
|
||||
const execute = c => {
|
||||
const permsN = getMessage(c.lang, 'command.help.permsNormal')
|
||||
const permsT = getMessage(c.lang, 'command.help.permsTrusted')
|
||||
const permsO = getMessage(c.lang, 'command.help.permsOwner')
|
||||
|
|
Loading…
Add table
Reference in a new issue