Skip to content

My personal trusty Twitch little pet 🐀

Notifications You must be signed in to change notification settings

fusillicode/xddmod

Repository files navigation

xddmod

Open Source Saturday Top language Commits Issues Closed issues

xdd

Create .env

cp .local.env .env

Setup local db

cargo sqlx db-reset --database-url sqlite://<LOCAL_DB_FILE>.db

"Prepare" sqlx queries && seed db

cargo sqlx prepare --workspace --database-url sqlite://<LOCAL_DB_FILE>.db -- --tests && \
    source .env && cargo run --bin dankcontent -- <LOCAL_DB_FILE>.db <MOD_ID>

Import champions info in db

cargo run --bin xtask import-ddragon-champion
    --ddragon-api-base-url http://ddragon.leagueoflegends.com/cdn/<API_VERSION>/data/en_US
    --db-url sqlite://<LOCAL_DB_FILE>.db

Run xddmod

source .env && RUST_BACKTRACE=1 cargo run --bin xddmod -- <CHANNEL>