Move lang files

This commit is contained in:
7cc5c4f330d47060 2024-08-13 02:04:47 -04:00
parent b2c5e2e353
commit fd62d27352
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 2 additions and 2 deletions

View file

@ -2,13 +2,13 @@ const fs = require('fs')
const languages = {}
const loadplug = (botno) => {
const bpl = fs.readdirSync('util/lang')
const bpl = fs.readdirSync('lang')
for (const i in bpl) {
if (!bpl[i].endsWith('.json')) {
continue
}
try {
languages[bpl[i].split('.')[0]] = require(`./lang/${bpl[i]}`)
languages[bpl[i].split('.')[0]] = require(`../lang/${bpl[i]}`)
} catch (e) { console.log(e) }
}
}