I found of bug.
bug
C:\Users\Administrator\Desktop\Shioru>node .
[15:18:32.051] INFO (shioru/8124): Checking configuration variables...
[15:18:32.053] WARN (shioru/8124): CONF: The openai.apiKey was not found in the environment.
[15:18:32.053] WARN (shioru/8124): CONF: The open_weather_token was not found in the environment.
[15:18:32.053] WARN (shioru/8124): CONF: The translation.baseURL was not found in the environment.
[15:18:32.054] ERROR (shioru/8124): An error was encountered while verifying the configuration.
err: {
"type": "Error",
"message": "CONF: API_KEY It needs to be set up in the environment.",
"stack":
Error: CONF: API_KEY It needs to be set up in the environment.
at Object.<anonymous> (C:\Users\Administrator\Desktop\Shioru\source\main.js:100:11)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
}
[15:18:32.056] INFO (shioru/8124): Setting up the main system...
[15:18:32.246] INFO (shioru/8124): Loading language modules...
[15:18:32.468] INFO (shioru/8124): Adding data and handlers to the main system...
[15:18:32.477] INFO (shioru/8124): Loading all commands and events...
[15:18:32.481] INFO (shioru/8124): Verifying and loading all commands...
[15:18:33.502] INFO (shioru/8124): Verifying and loading all contexts...
[15:18:33.510] INFO (shioru/8124): Verifying and loading all events...
[15:18:33.635] INFO (shioru/8124): Connecting to the backend and logging in...
[15:18:33.643] FATAL (shioru/8124): Unhandled Rejection
usage: {
"cpu": "4.38%",
"memory": "51.47%/73.81%"
}
version: {
"package": "3.6.4",
"discord": "14.15.3",
"node": "v20.15.0"
}
[15:18:33.749] FATAL (shioru/8124): An invalid token was provided.
err: {
"type": "DiscordjsError",
"message": "An invalid token was provided.",
"stack":
Error [TokenInvalid]: An invalid token was provided.
at Client.login (C:\Users\Administrator\Desktop\Shioru\node_modules\discord.js\src\client\Client.js:216:52)
at Object.<anonymous> (C:\Users\Administrator\Desktop\Shioru\source\main.js:255:8)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
"code": "TokenInvalid"
}
[15:18:33.756] FATAL (shioru/8124):
关闭于 2024-06-30 0 条评论