Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

General Bot Errors #13

Open
mrkingtj opened this issue Oct 18, 2023 · 3 comments
Open

General Bot Errors #13

mrkingtj opened this issue Oct 18, 2023 · 3 comments

Comments

@mrkingtj
Copy link

mrkingtj commented Oct 18, 2023

I have not edited any files apart from button.js, and messageCreate.js and slash commands register but the bot does not respond to them. I have troubleshooted everything possible (including scopes bot and applications.commands) with no fix. (stock files straight from this repo has the same issue)

Worth mentioning that everything else functions as intended apart from slash commands

@TFAGaming
Copy link
Owner

It should be fixed now, I have released a new version of my package without updating this code, which means you're using an outdated code with the latest version. Lucky for you, the version of this bot v8 has been released, it should be fixed now.

If the error is still occurring, feel free to tell me.

@mrkingtj
Copy link
Author

mrkingtj commented Oct 22, 2023

So delete the entire folder I have now and redownload the .zip? Or can I just download v8 and replace files? Which is the best way to go? (I would rather just replace bits of code here and there but it seems like its way more than just one file)

P.S. is it possible to modify some files to continue using the JSON database (with v8) rather than SQL? As Visual Studio Code can't read .sql databases even with SQLite extension

@mrkingtj mrkingtj changed the title bot doesn't respond to slash commands General Bot Errors Oct 22, 2023
@mrkingtj
Copy link
Author

mrkingtj commented Oct 22, 2023

UPDATE:
I did a bit of trial and error but now I got the slash commands working using v7 (found I didn't have all the files yet everything worked, anyway) with the new files in v8. But now I get TypeError: Cannot read properties of undefined (reading 'findOne') and I am not sure how to fix it. Everything else works apart from sending the attachment and embedded to the user and the defined channel. (My "outdated code" works fine with sending the attachment but with the v8 file it doesn't work. Hence the error)

Here is the file messageCreate.txt in .txt format (just so it will send)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants