microsoft-rewards-bot icon indicating copy to clipboard operation
microsoft-rewards-bot copied to clipboard

Include additional parameters as variables

Open alceasan opened this issue 2 years ago • 1 comments

New run-farmer.sh script for launching the bot. It includes capturing two docker environment variables to be passed to the bot:

- DISCORD_WH=<URL>

--discord WEBHOOK_URL Use this argument to send logs to your Discord server through a webhook.

- CURRENCY_VALUE=<VALUE>

--currency CURRENCY Converts your points into your preferred currency. Available currencies: EUR, USD, AUD, INR, GBP, CAD, JPY, CHF, NZD, ZAR, BRL, CNY, HKD, SGD, THB

alceasan avatar Aug 02 '23 11:08 alceasan

For now, you can just update the run command by providing your own. Later, I can add support for providing custom arguments with sane defaults.

docker run --rm -it \
  --shm-size 4g \
  -v "$PWD"/accounts.json:/app/accounts.json \
  ghcr.io/haq/microsoft-rewards-bot python3 ms_rewards_farmer.py --dont-check-for-updates --no-webdriver-manager --on-finish exit --discord url --currency usd

haq avatar Aug 02 '23 12:08 haq