Consistantly monitors the R6 Marketplace based on a tracking list.
The Discord bot tracks sales over time, also presenting extra item data not otherwise shown on the R6 Marketplace.
Much of the data this gathers can be used to manipulate the market to your advantage.
- Experience with Git
- Experience setting up a Discord Bot
- Python and Pip
- Git CLI
- A discord bot and its token
First, clone and navigate to the repo:
git clone https://github.com/hiibolt/r6econ.git
cd r6econ
Next, add a 'data.json' file to /assets
, and leave the contents as:
{
}
Next, add an 'ids.json' file to /assets
, and place any items and their item IDs in the contents. There is an starting example in the assets folder of this repo.
Make sure you have enabled Privledge Message Intent in the bot settings on the Discord Developer portal.
Finally, depending on your operating system and choice of terminal:
set AUTH_EMAIL=[email protected]
set AUTH_PW=mysecretpassword
set TOKEN=mydiscordbotstoken
pip install -r requirements.txt
python3.exe server.py
$env:AUTH_EMAIL="[email protected]"
$env:AUTH_PW="mysecretpassword"
$env:TOKEN="mydiscordbotstoken"
pip install -r requirements.txt
python3.exe server.py
export [email protected]
export AUTH_PW=mysecretpassword
export TOKEN=mydiscordbotstoken
pip install -r requirements.txt
python3 server.py
Congratulations, you're done! Invite the bot to your personal server and check that it works with econ help
.
If you run into setup errors, please contact @hiibolt on Discord.
Do not ask me to 'set up the bot' - if you don't have the experience listed in the prerequisites, I offer access to my personal copy for a set fee.
Be sure to bind a volume for your assets and add a data.json
file with contents {}
, as well as an ids.json
file (template ids.json
can be found in this repository).
compose.yml
services:
r6econ-bot:
image: ghcr.io/hiibolt/r6econ:latest
volumes:
- 'assets:/app/assets'
environment:
- AUTH_EMAIL=<your ubisoft email here>
- AUTH_PW=<your ubisoft password here>
- TOKEN=<your discord token here>
volumes:
assets:
-
Lists all available names you can search for. It's recommended that you use item IDs instead, however.
Lists all tracked skins.
-
Fetches the economical trends of an item based on its name in
ids.json
. -
Functionally the same as the above, but allows the direct lookup by the item's static ID.
-
Displays a graph of the current state of an item.
This is the most useful command, and can be used to determine when to buy or sell. A basic example of how to make informed decisions is in the linked article in the description of this repo.
-
Calculates how much you need to sell for to gain profit, and estimates your profit if sold right now (according to the RAP 10x).
Default message that is shown when an invalid command is used or the user runs econ help
.
Much of the authentication code was sourced from https://github.com/CNDRD/siegeapi.
Thank you for the well-documented code! <3