Rename all JSON to JS files

This commit is contained in:
7cc5c4f330d47060 2024-11-19 19:50:33 -05:00
parent e87b2bbe2b
commit 1eef37ae86
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
7 changed files with 7 additions and 7 deletions

View file

@ -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', {

View file

@ -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'

View file

@ -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) {
/*

View file

@ -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) }

View file

@ -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

View file

@ -1,4 +1,4 @@
{
export default {
"botName": "botv12 Dev",
"botVersion": "12.0.0-alpha.1",
"botAuthor": "owo439895035",