Crates.io | swgoh_farming_bot |
lib.rs | swgoh_farming_bot |
version | 0.5.0 |
source | src |
created_at | 2019-08-22 18:48:37.525031 |
updated_at | 2022-02-15 23:17:45.588442 |
description | Discord farming bot for Star Wars Galaxy of Heroes mobile game |
homepage | |
repository | https://gitlab.com/swgoh-game/farming-bot |
max_upload_size | |
id | 158943 |
size | 112,992 |
A Discord bot to manage and track farming in SWGoH
This bot works only with MySQL.
DISCORD_TOKEN
and DATABASE_URL
env var must be set to work.
DATABASE_URL
must be a valid MySQL format like mysql://[[user]:[password]@]host[:port][/database]
.
All release images are in this registry registry.gitlab.com/swgoh-game/farming-bot/swgoh_farming_bot
.
See container registry to see all images.
docker pull registry.gitlab.com/swgoh-game/farming-bot/swgoh_farming_bot:latest
.docker run --env DISCORD_TOKEN=yourtoken --env DATABASE_URL=yourdburl registry.gitlab.com/swgoh-game/farming-bot/swgoh_farming_bot
.Run cargo install swgoh_farming_bot
. The database migrations are run at application startup.
To run use env APP_ENV=prod DISCORD_TOKEN=yourdiscordtoken DATABASE_URL=yourdburl swgoh_farming_bot
.
To specify log level, add RUST_LOG
env var.
Diesel must be installed with Mysql feature. See diesel documentation to install it
Follow steps bellow to install and run this bot.
.env.dist
file and rename it to .env
. Change content to the right values. Or use environment variables.cargo run --release
or build with cargo build --release
and run with ./target/release/swgoh-farming-bot
.Inside discord run the !unit update
command. Only the bot owner can run this command.
This project adheres to Semantic Versioning and use git flow branching model.
unit update
command who get all existing units (character and ships) from swgoh.gg.unit farmed
command who get all members that farm this unit.farm gears
command to register whit units is actually gears up.user ignore
command to ignore a user during given days or definitively.All new ideas are welcome.
Copyright 2019 David Wittwer and Contributors
This project is licensed under GNU GPLv3 license. See license file