Skip to content
/ r6econ Public

Long-term quantitative market analysis Discord Bot for the Rainbow Six Siege Marketplace, storing data to allow informed purchases and market manipulation.

License

Notifications You must be signed in to change notification settings

hiibolt/r6econ

Repository files navigation

r6econ

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.

Setup (Recommended)

Prequisites

  • Experience with Git
  • Experience setting up a Discord Bot

Program Requirements

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:

Windows Command Prompt

set AUTH_EMAIL=[email protected]
set AUTH_PW=mysecretpassword
set TOKEN=mydiscordbotstoken
pip install -r requirements.txt
python3.exe server.py

PowerShell

$env:AUTH_EMAIL="[email protected]"
$env:AUTH_PW="mysecretpassword"
$env:TOKEN="mydiscordbotstoken"
pip install -r requirements.txt
python3.exe server.py

Bash

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.

Setup (Docker Compose)

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:

Commands:

  • econ list

    Lists all available names you can search for. It's recommended that you use item IDs instead, however.

    image

    Lists all tracked skins.

  • econ name <skin name>

    Fetches the economical trends of an item based on its name in ids.json.

    image

  • econ id <item id>

    Functionally the same as the above, but allows the direct lookup by the item's static ID.

    image

  • econ graph <# of entries | all> <unit of time (days | hours | minutes )>

    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.

    image

  • econ profit <$ purchased for> <item id>

    Calculates how much you need to sell for to gain profit, and estimates your profit if sold right now (according to the RAP 10x).

    image

  • econ help

Default message that is shown when an invalid command is used or the user runs econ help.

image

Credits

Much of the authentication code was sourced from https://github.com/CNDRD/siegeapi.

Thank you for the well-documented code! <3

About

Long-term quantitative market analysis Discord Bot for the Rainbow Six Siege Marketplace, storing data to allow informed purchases and market manipulation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages