jonathonor / syncBot

A bot that syncs roles between multiple discord servers.
https://www.jonsbots.com/syncBot
30 stars 16 forks source link

Cannot find module './config.json' #10

Closed Re4LSteaL closed 2 years ago

Re4LSteaL commented 2 years ago

Require stack:

jonathonor commented 2 years ago

Hi, there is a config.example.json that you will need to fill in with details for your specific server and save it as config.json

Re4LSteaL commented 2 years ago

Hello, thank you very much for answering my question. Sorry for being annoying, but I still have 1 more error and it's this.

C:\Users\flore\Documents\syncBot>node register.js Started refreshing application (/) commands. S[50001]: Missing Access at Q.runRequest (C:\Users\flore\node_modules\@discordjs\rest\dist\index.js:7:581) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Q.queueRequest (C:\Users\flore\node_modules\@discordjs\rest\dist\index.js:5:2942) at async C:\Users\flore\Documents\syncBot\register.js:43:5 { rawError: { message: 'Missing Access', code: 50001 }, code: 50001, status: 403, method: 'put', url: 'https://discord.com/api/v9/applications/946367217426128906/guilds/810851584773718036/commands', requestBody: { files: undefined, json: [ [Object], [Object] ] } }

jonathonor commented 2 years ago

Try the answer listed on this link. https://stackoverflow.com/questions/68886388/trying-to-register-commands-discordapierror50001-missing-access

Re4LSteaL commented 2 years ago

Thank you very much, I got it up and running. Now I just need to figure out how to make it run 24/7