Rename all JSON to JS files
This commit is contained in:
parent
e87b2bbe2b
commit
1eef37ae86
7 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
import { default as settings } from '../settings.js'
|
||||
import { default as version } from "../version.json" with { type: "json" }
|
||||
import { default as version } from "../version.js" with { type: "json" }
|
||||
const execute = (c) => {
|
||||
if (c.verify < 1) {
|
||||
c.bot.tellraw('@a', {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { default as settings } from '../settings.js'
|
||||
import { default as version } from '../version.json' with {type: "json"}
|
||||
import { default as version } from '../version.js'
|
||||
import { bots } from "../index.js"
|
||||
import botVersion from "../util/version.js"
|
||||
import chatlog from '../util/chatlog.js'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { default as parsePlain } from '../util/chatparse_plain.js'
|
||||
import { default as parseMc } from '../util/chatparse_mc_withHex.js'
|
||||
import { default as settings } from '../settings.js'
|
||||
import { default as version } from '../version.json' with {type: "json"}
|
||||
import { default as version } from '../version.js'
|
||||
class SCTask {
|
||||
constructor (failTask, startFailed = false) {
|
||||
/*
|
||||
|
|
|
@ -6,11 +6,11 @@ const fallbackLocale = settings.fallbackLocale ? settings.fallbackLocale : 'en-U
|
|||
const loadplug = () => {
|
||||
const bpl = readdirSync('lang')
|
||||
for (const plugin of bpl) {
|
||||
if (!plugin.endsWith('.json')) {
|
||||
if (!plugin.endsWith('.js')) {
|
||||
continue
|
||||
}
|
||||
try {
|
||||
import(`../lang/${plugin}`, {with: {type: "json"}}).then(languageFile => {
|
||||
import(`../lang/${plugin}`).then(languageFile => {
|
||||
languages[plugin.split('.')[0]] = languageFile.default
|
||||
})
|
||||
} catch (e) { console.log(e) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { default as version } from "../version.json" with { type: "json" }
|
||||
import { default as version } from "../version" with { type: "json" }
|
||||
import { execSync } from "child_process"
|
||||
let botVersion = version.botVersion
|
||||
let gitCommit
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
export default {
|
||||
"botName": "botv12 Dev",
|
||||
"botVersion": "12.0.0-alpha.1",
|
||||
"botAuthor": "owo439895035",
|
Loading…
Reference in a new issue