Lint again
This commit is contained in:
parent
e7ddcd4516
commit
c33664382a
7 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
import { default as parsePlain } from '../util/chatparse_plain.js'
|
||||
import parsePlain from '../util/chatparse_plain.js'
|
||||
|
||||
const priority = 2
|
||||
const parse = (data, b) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { default as parsePlain } from '../util/chatparse_plain.js'
|
||||
import parsePlain from '../util/chatparse_plain.js'
|
||||
|
||||
const priority = 1
|
||||
const parse = (data, b) => {
|
||||
|
|
|
@ -2,10 +2,10 @@ import os from 'node:os'
|
|||
import { execSync } from 'child_process'
|
||||
import { getMessage, formatTime } from '../util/lang.js'
|
||||
import memoryconvert from '../util/memoryconvert.js'
|
||||
import { readdirSync, readFileSync } from "node:fs"
|
||||
import botVersion from "../util/version.js"
|
||||
import version from "../version.js"
|
||||
import { bots } from "../index.js"
|
||||
import { readdirSync, readFileSync } from 'node:fs'
|
||||
import botVersion from '../util/version.js'
|
||||
import version from '../version.js'
|
||||
import { bots } from '../index.js'
|
||||
|
||||
const aboutBot = function (c) {
|
||||
c.reply({
|
||||
|
|
|
@ -2,7 +2,7 @@ import * as index from '../index.js' // Not used in the code, but may be used by
|
|||
import { getMessage } from '../util/lang.js'
|
||||
|
||||
const execute = (c) => {
|
||||
if (c.verify != 2) {
|
||||
if (c.verify !== 2) {
|
||||
c.reply({
|
||||
text: getMessage(c.lang, 'command.disallowed.perms.short')
|
||||
})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import settings from '../settings.js'
|
||||
import version from "../version.js"
|
||||
import version from '../version.js'
|
||||
const execute = (c) => {
|
||||
if (c.verify < 1) {
|
||||
c.bot.tellraw('@a', {
|
||||
|
|
|
@ -57,7 +57,7 @@ export default function load (b) {
|
|||
nbtItems.forEach((item, i) => {
|
||||
b.messageTypes[i] = convertChatTypeItem(item.element.value.chat.value)
|
||||
})
|
||||
} else if (data.entries && data.id == 'minecraft:chat_type') {
|
||||
} else if (data.entries && data.id === 'minecraft:chat_type') {
|
||||
data.entries.forEach((item, i) => {
|
||||
b.messageTypes[i] = convertChatTypeItem(data.entries[i].value.value.chat.value)
|
||||
})
|
||||
|
|
|
@ -34,7 +34,7 @@ const getMessage = function (l, msg, with2) {
|
|||
return message.replace(/\ue123/g, '%').replace(/\ue124/g, '%s').replace(/\ue125/g, '$s')
|
||||
}
|
||||
|
||||
const languages_keys = Object.keys(languages)
|
||||
const languagesKeys = Object.keys(languages)
|
||||
const formatTime = function (time, language) {
|
||||
let finalString = ''
|
||||
const seconds = Math.floor(time / 1000) % 60
|
||||
|
@ -66,7 +66,7 @@ const formatTime = function (time, language) {
|
|||
}
|
||||
|
||||
export {
|
||||
languages_keys as languages,
|
||||
languagesKeys as languages,
|
||||
formatTime,
|
||||
getMessage
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue