Beelzebub2 / AutoBanana

AutoBanana automates opening and closing of games. Features include running on startup, timed sessions. Easily configure settings in config.ini and track actions with detailed logging. Perfect for automating your gaming routine!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static Badge Static Badge Static Badge User Count GitHub issues GitHub forks GitHub stars GitHub contributors

AutoBanana

Now supports multiple games!

AutoBanana is an automated script designed to manage the opening and closing of games through Steam. The primary features of AutoBanana include:

Features

  • Automatic Startup: Configure the script to run on system startup, ensuring the game is managed without user intervention.
  • Timed Execution: Opens the game using the Steam URL (steam://rungameid/2923300) and waits for a specified duration before closing it. This cycle repeats every three hours.
  • Logging: Logs all actions, including game opening, closing, and startup configurations, for easy monitoring and debugging. This file can be found in %appdata%/AutoBanana/AutoBanana.log.
  • Startup Management: Easily add or remove AutoBanana from the Windows startup sequence.
  • Customizable Configurations: Customize settings like program path, time to wait, and installation trigger through a config.ini file.

Installation

You can find the latest releases here.

Simply download and run AutoBanana-win64.exe

I am aware of the false positive on the windows defender and working on a solution

Manual Installation

  • Download the repository: here
  • Extract the contents of the zip file
  • Install python Make sure to add python to PATH it's an option when installing!
  • Run setup.bat
  • Insert game ID's into the config file separated by a comma ',' (you can find the ids on the game properties under the updates page on library or steam shop link)

Development

  • Clone the repository: git clone https://github.com/Beelzebub2/AutoBanana/
  • Navigate to the project directory: cd AutoBanana
  • Install dependencies:
pip install -r requirements.txt
pip install -r requirements-dev.txt
  • Run the script: python AutoBanana.py

Manually Building

  • Navigate to the project directory: cd AutoBanana
  • Build with pyinstaller: pyinstaller -F -n AutoBanana-win64 -i banana.ico AutoBanana.py

Releasing

  • Push a tag with the version number starting with v and GitHub Actions will automatically build the release and upload it to the releases page.

Release Notes

Pending Features:
!   Autoupdater
!   Add more themes
!   Add option to trigger game install thourgh steam://install/gameid with a Xseconds delay 
!   Fix executable false positive on antivirus

v2.1 10/07/24

+   Fixed Logo not showing correctly, thanks to @SavageCore

v2.0 09/07/24

+   Fixed check steam games location a bit more optimized
+   Fixed logo.txt missing
+   Fixed error with moving files across drives (by removing the necessity to do that)

v1.9 04/07/24

+   Added function to download missing files
+   Automatically removes games that are not installed from config.ini
+   Now detects Keyboard interrupt

v1.8 03/07/24

!   Started looking for ways to fix false positive on executable
+   Removed a duplicate function
+   Added documentation to functions (generated with Mintlify Doc Writer)

v1.7 02/07/24

+  Now Downloads the config.ini if it's missing
+  Executable version available
+  Now adds icon to executable

v1.6 27/06/24 Thank you guys :)

+  Actually opens all games, thanks to @SavageCore
+  Improved get_steam_games, thanks to @SavageCore
+  Fixed startup error, thanks to @SavageCore
+  More games like banana in the config thanks to @Gesugao-san

v1.5 24/06/24

+   Actually closes the other games now

v1.4 20/06/24

+   Added total games count to UI
+   Added multiple games support
-   Removed install verification

v1.3 19/06/24

+   Now checks if game was installed correctly
+   Code rework

v1.2 17/06/24

+   Added statistics tracker
+   Fixed bug with UI

v1.1 17/06/24

+   Improved UI
+   Organized the code
+   Added time until next open
+   Added start on startup

About

AutoBanana automates opening and closing of games. Features include running on startup, timed sessions. Easily configure settings in config.ini and track actions with detailed logging. Perfect for automating your gaming routine!

License:GNU General Public License v3.0


Languages

Language:Python 90.3%Language:Batchfile 9.7%