Open naustagic opened 8 months ago
Do you mean that .env.sample
is lacking some variables?
@Azshurith
I'm using Linux and using Node V. 20.9.0 and I have this error: (I used command: "npm install", then "npm run dev".)
root@saralapia:/home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2# npm run dev
> mir4-atlas@1.0.0 dev
> ts-node-esm src/Core.ts
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2/src/Core.ts
at new NodeError (node:internal/errors:406:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
at defaultGetFormat (node:internal/modules/esm/get_format:142:36)
at defaultLoad (node:internal/modules/esm/load:120:20)
at nextLoad (node:internal/modules/esm/hooks:833:28)
at load (/home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2/node_modules/ts-node/dist/child/child-loader.js:19:122)
at nextLoad (node:internal/modules/esm/hooks:833:28)
at Hooks.load (node:internal/modules/esm/hooks:416:26)
at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
I tried to correct and use other versions of node like v.18 and made some changes and this error appeared:
about the variables that I'm seeing that are missing, in: /src/modules/core/database/Database.js:
host: HDiscordConfig.loadEnv(`discord.database.host`),
port: Number(HDiscordConfig.loadEnv(`discord.database.port`)),
username: HDiscordConfig.loadEnv(`discord.database.username`),
password: HDiscordConfig.loadEnv(`discord.database.password`),
database: HDiscordConfig.loadEnv(`discord.database.name`)
Could you please help me fix these errors and make it work? I don't know what the problem is, I don't understand TS =/
@Azshurith
I managed to get the bot to work, but the .env variables are actually different from V1, as you can see in the image below.
And also when trying to use the "check" button, it doesn't find the character, and I didn't find a configuration for the character search api in the code. Could you update, or tell me how to do it, please?
Hello everything is fine? Thank you for providing the source code for this second version.
It is missing from config database the .env file
the connection to the database, and also the structure to create with the information from the apis. If you could add, I would be very grateful. thanks.