Before running everything, you must have node.js installed, or click here to install.
In order to install better-sqlite3 you must have Python installed in order to work.
If you wish to see what is inside the database file, you can use DB Browser this also can be use if you are debugging or monitoring user XP/Levels.
After installing node.js and Python, you need to install all of the packages listed in package.json
file. On Console/Terminal, run npm install
command to install all of uninstalled packages. Wait for it to finish and you good to go!
After installing packages, now you can copy your Discord Bot Token in config.json.example
file, and rename config.json.example
to config.json
, fill your Discord Bot Token, your User ID and Prefix. After that, you can choose which Rank Card you wish to use for Your Discord Bot:
Canvacord Canvas logo
YOU CAN ONLY CHOOSE ONE OF THE FILE!!! Remove .canvacord or .canvas if you want to choose which card you think better.
All of that done, we can now make the Bot online.
On your Console/Terminal, run node index.js
or node .
to run the bot! But you can't make it online forever unless you leave your PC/Code Editor/Console online for 24/7. You can host your Bot with Virtual Server/VPS/Discord Bot Hosting Services, here are some recommendation;
REMINDER: ALL OF THIS MIGHT BE OUTDATED AND IM TOO LAZY TO UPDATE IT LOL :P
I've been using Something.Host for 8 months, and it's great. Easy to use, and extremely cheap, with the lowest price at 1.49 € / month!
If you don't have money to host, well DanBot Hosting is for you! It's easy to use, but every free stuff comes with risks. Well DanBot Hosting is pretty slow and server always goes offline randomly, but it's a great start.
- Heroku is honestly not good for hosting your bot, your bot will run slow or having lag issues, You will not be able to write data in your Database with Heroku.
- You are also not supposed to use repl.it. I believe that repl.it does not support better-sqlite3.
That's it for the Tutorial! I might update this sometimes in the future! So, thanks for using Discord.JS-Leveling-Bot and supporting me!