An Open Source version of Cryptonix X and a basic frame for any discord.js bot. Integrates MongoDB as a solution for database! Support Server
Made by HarutoHiroki#4000
npm install -g --production windows-build-tools
start.bat
file[prefix]settings template
to get the template. Then you need to edit it and upload it to discord as an attachment with the command [prefix]settings upload
(these settings are different from settings.json from Step 1, if you need an example json file do [prefix]settings example
)UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token | in JSON at position 69420
- well to solve this compare the json file you're trying to upload to the example.json file included in the code and see whats wrong there.
Want to start hosting your own bot? Well I have one recommended tool for youuuuuuuuuu :D
As mentioned in optional tools, PM2 is a useful tool that can help you keep your bot online and restart it whenever it crashes. To install it do
npm i pm2
to install it for the repo only or do npm i pm2 -g
to install it globally (need admin/sudo perms)
Then you can start the bot using PM2 by doing pm2 start index.js
inside the bot folder. More documentation here