This repository contains a bot for Airline Manager 4, built with Playwright and scheduled to run on GitHub Actions. The bot is designed to run every hour at 01 and 31 minutes but the schedule can be changed according to preference.
- Start an eco-friendly campaign if not already started.
- Start a campaign to increase airline reputation.
- Buy fuel and CO2 if prices are below specified thresholds.
- Depart all planes.
- Schedule repairs and A-Checks if needed.
- Buy fuel and CO2 at higher prices if supplies are nearly finished.
- Fork this repository.
- Set up secrets:
- Go to Settings > Actions > Secrets and variables.
- Create the following repository secrets:
EMAIL: <YOUR-EMAIL>PASSWORD: <YOUR-PASSWORD>
- Set up variables:
- Go to Settings > Actions > Variables.
- Create the following variables:
MAX_FUEL_PRICE: 550 (Set your desired price. The bot will buy fuel if the current price is lower.)MAX_CO2_PRICE: 120 (Same as fuel.)
- If you want bot to start a campaign to increase airline reputation you need to set these variables:
INCREASE_AIRLINE_REPUTATION: trueCAMPAIGN_TYPE: 1 (You can set this to your desired campaign type)CAMPAIGN_DURATION: 4 (Again you can set this to your desired campaign duration)
- Enable workflows:
- Go to Actions and enable workflows.
- The workflow will now be triggered twice every hour at 01 and 31 minutes.
- Language of your game must be English for this bot to work.
- Trigger times may vary due to heavy loads on GitHub Actions.
- To change the schedule, edit the cron expression under schedule in
.github/workflows/playwright.yml. Use crontab.guru to generate your desired cron expression. - If you don't want your repo to be public you can clone this project and commit it to your private repo.
- For questions, reach out on Discord:
muhittin852.