Lint
This commit is contained in:
parent
7ae0fb05b8
commit
07a1c0754c
11 changed files with 88 additions and 92 deletions
|
@ -1,6 +1,6 @@
|
|||
const execute = (c) => {
|
||||
const execute = (c) => {
|
||||
c.bot.ccq.push(c.args.join(' '))
|
||||
}
|
||||
const consoleIndex = true
|
||||
const aliases = ['commandblock', 'cmdblock']
|
||||
const consoleIndex = true
|
||||
const aliases = ['commandblock', 'cmdblock']
|
||||
export { execute, consoleIndex, aliases }
|
||||
|
|
|
@ -1,6 +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) {
|
||||
|
@ -86,8 +85,7 @@ const execute= (c) => {
|
|||
})
|
||||
}
|
||||
}
|
||||
const consoleIndex= true
|
||||
const level= 1
|
||||
const consoleIndex = true
|
||||
const level = 1
|
||||
|
||||
|
||||
export { execute, consoleIndex, level }
|
||||
export { execute, consoleIndex, level }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const execute= (c) => {
|
||||
const execute = (c) => {
|
||||
c.bot._client.end()
|
||||
}
|
||||
const consoleIndex= true
|
||||
const level= 2
|
||||
const consoleIndex = true
|
||||
const level = 2
|
||||
|
||||
export { execute, consoleIndex, level }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const execute= (c) => {
|
||||
const execute = (c) => {
|
||||
c.bot.chat(c.bot.refillCoreCmd)
|
||||
}
|
||||
const consoleIndex= true
|
||||
const consoleIndex = true
|
||||
const aliases = ['refillcore', 'rc']
|
||||
|
||||
export { execute, consoleIndex, aliases }
|
||||
export { execute, consoleIndex, aliases }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const execute= (c) => {
|
||||
const execute = (c) => {
|
||||
process.exit(0)
|
||||
}
|
||||
const aliases = ['reboot']
|
||||
const level= 2
|
||||
const level = 2
|
||||
|
||||
export { execute, aliases, level }
|
||||
export { execute, aliases, level }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const execute= (c) => {
|
||||
const execute = (c) => {
|
||||
process.exit(1)
|
||||
}
|
||||
const aliases = ['exit']
|
||||
const level= 2
|
||||
const level = 2
|
||||
|
||||
export { execute, aliases, level }
|
||||
export { execute, aliases, level }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const execute= (c) => {
|
||||
// Blank template
|
||||
/*
|
||||
const execute = (c) => {
|
||||
// Blank template
|
||||
/*
|
||||
c.send(text, user?): Send text to all ("/tellraw @a")
|
||||
c.reply(text): Send text to command sender
|
||||
c.uuid: Unique identifier (UUID for Minecraft, Discord ID for Discord)
|
||||
|
@ -14,8 +14,8 @@ const execute= (c) => {
|
|||
c.lang: The language the player has selected, or the default if none
|
||||
c.colors: The color palette the player has selected, or the default if none
|
||||
*/
|
||||
}
|
||||
/*
|
||||
}
|
||||
/*
|
||||
Command description and usage have been moved to the message files. The format for a basic command is:
|
||||
"command.(name).usage": " <required> [optional]",
|
||||
"command.(name).desc": "Insert description here...",
|
||||
|
@ -34,8 +34,8 @@ const execute= (c) => {
|
|||
cmdusage - desc
|
||||
Extra information is inserted wherever there is a "%s" or a "%n$s", with n being the index of the item in the array.
|
||||
*/
|
||||
const hidden= true // To show the command on the help command list, remove this line (optional)
|
||||
const consoleIndex= true // When run from console, the second argument will be a bot ID (optional)
|
||||
const aliases= ['example'] // Other command names that will work the same (optional)
|
||||
const level= 0 // Permission level required to run this command (optional)
|
||||
export { execute, hidden, consoleIndex, aliases, level } // Only export the items that were included in your command
|
||||
const hidden = true // To show the command on the help command list, remove this line (optional)
|
||||
const consoleIndex = true // When run from console, the second argument will be a bot ID (optional)
|
||||
const aliases = ['example'] // Other command names that will work the same (optional)
|
||||
const level = 0 // Permission level required to run this command (optional)
|
||||
export { execute, hidden, consoleIndex, aliases, level } // Only export the items that were included in your command
|
||||
|
|
|
@ -1,45 +1,44 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
const execute= function (c) {
|
||||
let uuid
|
||||
if (c.type === 'console') {
|
||||
uuid = c.bot._client.uuid
|
||||
} else {
|
||||
uuid = c.uuid
|
||||
}
|
||||
const originalPos = {
|
||||
x: Math.floor(Math.random() * 2000000) - 1000000,
|
||||
y: 100,
|
||||
z: Math.floor(Math.random() * 2000000) - 1000000
|
||||
}
|
||||
c.reply(
|
||||
{
|
||||
translate: getMessage(c.lang, 'command.tpr.success'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: c.username,
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.x.toString(),
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.y.toString(),
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.z.toString(),
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
c.bot.ccq.push(`/essentials:tp ${uuid} ${originalPos.x}.0 ${originalPos.y} ${originalPos.z}.0`)
|
||||
const execute = function (c) {
|
||||
let uuid
|
||||
if (c.type === 'console') {
|
||||
uuid = c.bot._client.uuid
|
||||
} else {
|
||||
uuid = c.uuid
|
||||
}
|
||||
const consoleIndex= true
|
||||
const aliases= ['rtp']
|
||||
|
||||
const originalPos = {
|
||||
x: Math.floor(Math.random() * 2000000) - 1000000,
|
||||
y: 100,
|
||||
z: Math.floor(Math.random() * 2000000) - 1000000
|
||||
}
|
||||
c.reply(
|
||||
{
|
||||
translate: getMessage(c.lang, 'command.tpr.success'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: c.username,
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.x.toString(),
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.y.toString(),
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: originalPos.z.toString(),
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
c.bot.ccq.push(`/essentials:tp ${uuid} ${originalPos.x}.0 ${originalPos.y} ${originalPos.z}.0`)
|
||||
}
|
||||
const consoleIndex = true
|
||||
const aliases = ['rtp']
|
||||
|
||||
export { execute, consoleIndex, aliases }
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
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')
|
||||
c.reply({
|
||||
translate: getMessage(c.lang, 'command.verify.success'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: [permsN, permsT, permsO][c.verify],
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
const aliases= ['verify']
|
||||
const level= 1
|
||||
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')
|
||||
c.reply({
|
||||
translate: getMessage(c.lang, 'command.verify.success'),
|
||||
color: c.colors.secondary,
|
||||
with: [
|
||||
{
|
||||
text: [permsN, permsT, permsO][c.verify],
|
||||
color: c.colors.primary
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
const aliases = ['verify']
|
||||
const level = 1
|
||||
|
||||
export { execute, aliases, level }
|
||||
export { execute, aliases, level }
|
||||
|
|
|
@ -19,4 +19,3 @@ export default function load (b) {
|
|||
b.cloops = []
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ export default {
|
|||
terminalMode: 'blackTerminal_24bit', // Terminal mode. Most modern terminals support 24-bit color
|
||||
version_mc: '1.21.1', // Minecraft version to connect with
|
||||
defaultLang: 'en-US', // Default language
|
||||
keyTrusted: "3e9f13473eec8d64c3eabf6385e3f8585f0af39ed30a8db9a4c8d8bcfa35659d7d06a58b342bfd2db5e3cbb4003a81da8f9d25f7cce1ad26face8e2871c3b217", // Trusted key
|
||||
keyOwner: "17d2c6c53b8919dc1ec22c42845018ac389824c4d73a68572b7fc57ff1442c6bbf9924d5ee5fa90cb23e384278d469c4e260208265b8ba2e2bc873045d5ed42e", // Owner key
|
||||
keyTrusted: '3e9f13473eec8d64c3eabf6385e3f8585f0af39ed30a8db9a4c8d8bcfa35659d7d06a58b342bfd2db5e3cbb4003a81da8f9d25f7cce1ad26face8e2871c3b217', // Trusted key
|
||||
keyOwner: '17d2c6c53b8919dc1ec22c42845018ac389824c4d73a68572b7fc57ff1442c6bbf9924d5ee5fa90cb23e384278d469c4e260208265b8ba2e2bc873045d5ed42e', // Owner key
|
||||
colors: { // All colors the bot uses
|
||||
secondary: '#DD99FF',
|
||||
primary: '#EECCFF',
|
||||
|
|
Loading…
Reference in a new issue