Tyrox is a Discord bot that I made using JavaScript and Discord.js (v13) while ago. The purpose is simple, I'm trying to make something fun to play with my friend when we have nothing to do and now I decided to make it open source so people can have the same experience as we do (I hope so).
- Economy
- Music
- Fun
- Game stats lookup
- Node.js version 16.6.0 or higher
- Discord bot token
- MongoDB URI (make sure you named your collection with
users
- Git clone or download the code directly through GitHub
- Extract to a folder if you download it
- Open a terminal and head over to the folder where the bot code located
- Run
npm install
- Rename
json/config-example.json
tojson/config.json
- Fill the variable as you need, I think it's pretty much self-explanatory
- (Optional) You need to install font inside the
assets
folder if you want to use Splitgate and Valorant stats lookup - Run
node index.js
or using pm2pm2 start index.js
Some of you might don't know what to do, so here's some informations that you might needed:
- How to get Discord bot token
- If you never touched MongoDB before, this is enough to get everything for this bot working
- Get tracker.gg api key
- Get Steam api key
- How to get Discord webhook
- Discord webhook pattern or segment is https://discord.com/api/webhooks/id/token
- You might want to add your bot to top.gg and reach new users naturally
Since my purpose making this bot is for the economy features, there's still lots potential for what you can do for further development, such as:
- Make some of the music commands (i.e bassboost) only for user who has voted your bot on top.gg
- Add badges to reward the user (economy features) i.e when a user catches 1000 fish
- The cooldown sometimes messed up, I tried to log the date and checking the data from mongodb and everything seems right but still, the cooldown sometimes messed up. If you know how to fix this, feel free to make a PR
- Valorant stats lookup command is not working because source of the data make some changes