Want to host TourneyBot? That's great! Here's how you do it.
- Install NodeJS and MongoDB's community server.
- Clone the repository.
- In a terminal, enter
$npm install
. - Edit credentials.js.TEMPLATE. You will need accounts on these sites.
- Discord API token: Go to "My Apps", create a new app, and add a bot user. Use the token under "App Bot User".
- Challonge API token: Go to "Settings", "Developer API", and generate an API key. Use that.
- TODO: db initialization (mongoose)
After installing, to actually run TourneyBot you will need to do a couple things.
- Run MongoDB on your computer. For instructions, click here, select the installation guide for your OS and scroll down to "Run MongoDB".
- Make a link to add Tourneybot to servers.
- Get your Client ID. Visit the Discord API site, go to "My Apps", click on the app, and under "App Details" copy the Client ID.
- Open this permissions calculator.
- Where it says "Insert Client ID here", insert your client ID.
- Check the boxes for THESE PERMISSIONS (TODO).
- In a terminal, enter
$npm run start
. - Open or share the link you created to add the bot to whatever servers you wish.
TODO
Thank you!! Please see CONTRIBUTE.md.
TODO