A Veloren bot that buys, sells and trades with players.
Go to file
2024-07-10 00:20:50 -04:00
assets/common Initial commit 2024-07-03 19:04:49 -04:00
config Add new log; Change veloren version to weekly tag 2024-07-10 00:20:50 -04:00
src Add new log; Change veloren version to weekly tag 2024-07-10 00:20:50 -04:00
.gitignore Separate secrets and config files 2024-07-08 14:09:15 -04:00
Cargo.lock Add new log; Change veloren version to weekly tag 2024-07-10 00:20:50 -04:00
Cargo.toml Add new log; Change veloren version to weekly tag 2024-07-10 00:20:50 -04:00
Dockerfile Add even more polish 2024-07-08 22:01:07 -04:00
README.md Polish and add a README 2024-07-08 22:54:42 -04:00
rust-toolchain Initial commit 2024-07-03 19:04:49 -04:00

Veloren Trading Bot

A bot that buys, sells and trades with players.

Usage

All of these steps can be done with docker instead of podman.

Running from pre-built image

Setup

Create a "secrets.toml" file:

# secrets.toml
username = "my_username"
password = "my_password"

Then create a secret to pass the file securely to the container.

podman secret create secrets.toml secrets.toml
  

You will also need a "config.toml":

# config.toml
character = "my_character"
position = [0.0, 0.0, 0.0] # Change these to the desired X, Y, Z coordinates
orientation = "West"

[buy_prices]
"common.items.food.cheese" = 50

[sell_prices]
"common.items.armor.boreal.back" = 250_000

Place this config file inside a directory called "config".

Running

podman run \
    --secret secrets.toml \
    -v ./config/:/root/config/ \
    --env CONFIG=/root/config/config.toml \
    --env SECRETS=/run/secrets/secrets.toml \
    --env RUST_LOG=trade_bot \
    git.jeffa.io/jeff/trade_bot

Building

From the directory root:

podman build . -t trade_bot

Then follow the above steps with the tag "trade_bot" instead of "git.jeffa.io/jeff/trade_bot".