-
Notifications
You must be signed in to change notification settings - Fork 55
🤖 Automate via cron job
coccoinomane edited this page May 14, 2022
·
1 revision
The easiest way to run Crabada.py without human supervision is using the bin.mining.run
command, as described in the README.
If you need a more fine-grained control, or you want to automate looting operations, you should consider setting a cron job: this is what this Wiki article is about.
I would recommend to do it on a remote server, for example on Vultr, AWS or Google Cloud; if you can't be bothered, you can also do it on your computer: just make sure you keep the computer turned on all the time.
Follow these instructions to send all available teams mining & to collect rewards for you:
- Find the path of Python 3 in your system by running
which python3
orwhich python
. - Open crontab >
env EDITOR=nano crontab -e
- Insert the following lines:
0,30 * * * * cd $HOME/crabada.py && /path/to/python3 -m bin.mining.sendTeamsMining <your address> 15,45 * * * * cd $HOME/crabada.py && /path/to/python3 -m bin.mining.closeMines <your address>
- Customize with the path to Python 3 (
/path/to/python3
), the path to the script folder ($HOME/crabada.py
) and your wallet address (<your address>
). - The cron job will run twice every 30 minutes. Feel free to change the frequency, if in doubt see Crontab Guru.
- If you want to reinforce defense too, just add another line to run
bin.mining.reinforceDefense
, for example:2,12,22,32,42,52 * * * * cd $HOME/crabada.py && python -m bin.mining.reinforceDefense <your address>
You need to rely on Powershell: volunteer needed to write this wiki section 🙂