Please consider voting for us here
As part of the timathon code jam, we, team nova, created a website and discord bot which let you see statistics for a range of different games, from clash royale, to hypixel. In this read me we'll be quickly going over what this project is, how you can use it, and integrate it into your own app.
To begin with using our website, you can either run it locally on your machine (instructions below) or use our live demo here. For the discord bot you can run it on your machine or you can try it out in our server, or in your own here. Once you get there this is how you can use it. Firstly click on the sign in button. Once you are logged in, you can choose the games that you wish to view. Incase you dont actually play one or more of these games, here are some examples with codes that you can use:
Code: #2JRLG8PUQ
Code: #LRLVRLV8
Code: #20L88L2J
Name: gamerboy80
Note: When installing these, make sure to add them to path, so you can use them.
Please create enviorment variables and configuration files before running app (mentioned below).
cd frontend
npm i
npm run dev
cd backend
npm i
npm start --> for deployment
npm run devstart --> for development
cd discordbot
pip install -r requirements.txt
python bot.py
- Make a file
frontend/.env.local - Add the following to the file, where you replace the client_id, client_secret, database_url with the respectable api key.
- NEXTAUTH_URL is equal to current url of home page of application, if it's different change it:
DISCORD_CLIENT_ID=client_id
DISCORD_CLIENT_SECRET=client_secret
NEXTAUTH_URL=http://localhost:3000/
DATABASE_URL=database_url- Make a file
backend/.env - Add the following to the file, where you replace the api_key with the respectable api key:
PORT=3000
CLASH_ROYALE_TOKEN=api_key
CLASH_OF_CLANS_TOKEN=api_key
BRAWL_STARS_TOKEN=api_key
HYPIXEL_KEY=api_key
MONGO_URL=mongo_url- Make a file
discordbot/config.yaml - Copy the contents of the config.example.yaml file and insert it into the config file. Make sure that you put in all significant details



