WhacK - I upgraded my existing sapphire bot to typ...

I upgraded my existing sapphire bot to typescript and altered some things. My commands are not being responded to anymore. I used the cli to make this new version. Log
8:10:50 PM - Found 0 errors. Watching for file changes.
2022-11-20 20:10:51 - INFO - Logging in
2022-11-20 20:10:52 - INFO - logged in
2022-11-20 20:10:52 - INFO - Connected to MongoDB
2022-11-20 20:10:52 - INFO - ApplicationCommandRegistries: Initializing...
1.0.0
[+] Gateway
</> DEVELOPMENT MODE
2022-11-20 20:10:52 - INFO - ├─ Loaded 26 arguments.
2022-11-20 20:10:52 - INFO - ├─ Loaded 0 commands.
2022-11-20 20:10:52 - INFO - ├─ Loaded 0 interaction-handlers.
2022-11-20 20:10:52 - INFO - ├─ Loaded 40 listeners.
2022-11-20 20:10:52 - INFO - ├─ Loaded 15 preconditions.
2022-11-20 20:10:52 - INFO - ├─ Loaded 1 routes.
2022-11-20 20:10:52 - INFO - ├─ Loaded 3 mediaParsers.
2022-11-20 20:10:52 - INFO - └─ Loaded 3 middlewares.
8:10:50 PM - Found 0 errors. Watching for file changes.
2022-11-20 20:10:51 - INFO - Logging in
2022-11-20 20:10:52 - INFO - logged in
2022-11-20 20:10:52 - INFO - Connected to MongoDB
2022-11-20 20:10:52 - INFO - ApplicationCommandRegistries: Initializing...
1.0.0
[+] Gateway
</> DEVELOPMENT MODE
2022-11-20 20:10:52 - INFO - ├─ Loaded 26 arguments.
2022-11-20 20:10:52 - INFO - ├─ Loaded 0 commands.
2022-11-20 20:10:52 - INFO - ├─ Loaded 0 interaction-handlers.
2022-11-20 20:10:52 - INFO - ├─ Loaded 40 listeners.
2022-11-20 20:10:52 - INFO - ├─ Loaded 15 preconditions.
2022-11-20 20:10:52 - INFO - ├─ Loaded 1 routes.
2022-11-20 20:10:52 - INFO - ├─ Loaded 3 mediaParsers.
2022-11-20 20:10:52 - INFO - └─ Loaded 3 middlewares.
Dependencies:
{"main": "dist/beholder.js",
"private": true,
"type": "commonjs",
"dependencies": {
"@sapphire/decorators": "^4.3.8",
"@sapphire/discord-utilities": "next",
"@sapphire/discord.js-utilities": "next",
"@sapphire/fetch": "^2.4.1",
"@sapphire/framework": "next",
"@sapphire/plugin-api": "next",
"@sapphire/plugin-editable-commands": "next",
"@sapphire/plugin-logger": "next",
"@sapphire/plugin-subcommands": "next",
"@sapphire/time-utilities": "^1.7.5",
"@sapphire/type": "^2.2.4",
"@sapphire/utilities": "^3.9.1",
"@skyra/env-utilities": "^1.1.0",
"colorette": "^2.0.19",
"discord-api-types": "^0.33.5",
"discord.js": "^13.10.2",
"dotenv-cra": "^3.0.2",
"mongoose": "^6.6.5",
"reflect-metadata": "^0.1.13"
},}
{"main": "dist/beholder.js",
"private": true,
"type": "commonjs",
"dependencies": {
"@sapphire/decorators": "^4.3.8",
"@sapphire/discord-utilities": "next",
"@sapphire/discord.js-utilities": "next",
"@sapphire/fetch": "^2.4.1",
"@sapphire/framework": "next",
"@sapphire/plugin-api": "next",
"@sapphire/plugin-editable-commands": "next",
"@sapphire/plugin-logger": "next",
"@sapphire/plugin-subcommands": "next",
"@sapphire/time-utilities": "^1.7.5",
"@sapphire/type": "^2.2.4",
"@sapphire/utilities": "^3.9.1",
"@skyra/env-utilities": "^1.1.0",
"colorette": "^2.0.19",
"discord-api-types": "^0.33.5",
"discord.js": "^13.10.2",
"dotenv-cra": "^3.0.2",
"mongoose": "^6.6.5",
"reflect-metadata": "^0.1.13"
},}
File Structure
src
> modules
>> ModuleName
>>> mode.command.ts
> listeners
> events
> routes
BeholderClient.ts (where I call
src
> modules
>> ModuleName
>>> mode.command.ts
> listeners
> events
> routes
BeholderClient.ts (where I call
.sapphirerc.json
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "modules",
"listeners": "listeners",
"preconditions": "preconditions"
},
"customFileTemplates": {
"enabled": false,
"location": ""
}
}
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "modules",
"listeners": "listeners",
"preconditions": "preconditions"
},
"customFileTemplates": {
"enabled": false,
"location": ""
}
}
7 Replies
Sawako
Sawako3y ago
Is commands folder no modules
WhacK
WhacKOP3y ago
Yeah it says it loads 0 commands And doesn’t respond
Sawako
Sawako3y ago
READ again
WhacK
WhacKOP3y ago
So it cannot be renamed? The cli and docs make it seem like you can use a custom location if you set it.
Sawako
Sawako3y ago
cli is not the framework and to change that route is a separate concept about stores in the framework
WhacK
WhacKOP3y ago
ok thank you for your help!
Want results from more Discord servers?
Add your server