Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Adding to my own bot #2

Open
FreeMyxticss opened this issue Dec 13, 2021 · 3 comments
Open

Error Adding to my own bot #2

FreeMyxticss opened this issue Dec 13, 2021 · 3 comments

Comments

@FreeMyxticss
Copy link

I added all ur open source code to my bot and I get a error

On Replit

@FreeMyxticss
Copy link
Author

ERROR CODE

/home/runner/DiscordAIO-1/src/loader.js:13
client.on(file.split('.')[0], event.bind(null, client));
^

TypeError: event.bind is not a function
at Object. (/home/runner/DiscordAIO-1/src/loader.js:13:41)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/DiscordAIO-1/index.js:189:1)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47

@proudparrot2
Copy link

Hmm. You have NodeJS 16, and DJS 13?

@4troDev
Copy link

4troDev commented Dec 27, 2021

I added all ur open source code to my bot and I get a error

On Replit

Replit wont support NodeJS 16 at the moment but i found something that might help you https://github.com/RLX-OP/node.js-v16-replit

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

No branches or pull requests

3 participants