MEE6, but better Help regarding this can be asked here
The primary goal of this project is to fulfil my expectations from discord bots
Will fill this out later.
Hosting on heroku is very easy. All you have to do is fork this repository, make changes to safe-config.ts
- go to Heroku
- create an application
- Add your fork as the repository (link your github if not done yet)
- add environment varaibles like this
- TOKEN => your discord-bot's token
- USER_DB => your mongodb atlas (or even any other host) url which you will be using to connect to user database
- GUILD_DB => your mongodb atlas (or even any other host) url which you will be using to connect to guild database
- BS_API_KEY => your brawl stars api key see this
- COC_API_KEY => your clash of clasn api key see this
- CR_API_KEY => your clash royale api key see this
- STARLIST_KEY => your starlist (now name changed to brawlify) api key (optional as private api)
- GITHUB_API_KEY => your github api key see this
- Change the dyno worker thing to worker (it is web by default)
And your bot should be online!
You will need:
You might want:
Run npm i
in your terminal (Node js will install all the dependencies.)
Then,
Run npm run start
in your terminal
Creating Files:
- config-dev.ts This file will be used when hosting on a native pc (the format will remain same as config.ts "This file indirectly has all the credentials").
Changing Files
-
Suggested:
-
Not Suggested:
- config.ts This file has been setup in a special way that it can work on your host whilst still being in that same Open-Source repository making it easy to apply changes.
Note: Do not have any of the env variables (process.env[varaible]) that are shown in config.ts or just have them correct as it is how the bot works. (On your host you should have those and are expected to put them not on native pc)
Supercell:
Note: I have used The Royale API proxy and hence you will have to add 128.128.128.128
as an whitelisted IP Address in the above keys in order for this to function properly.
GitHub:
Lavalink:
This needs you to either host a lavalink server or use an exisiting server.
Spotify:
This is needed for searching Spotify music tracks and adding them to queue. This is an optional requirement.
You can use this bot for any purpose you want except for if it breaks TOS of discord, supercell, github etc. Do not use this bot for any illegal purposes.