thejoabo / autofishbot

Auto Fishing Bot made in Python 3 for Virtual Fisher Discord Bot.
MIT License
40 stars 24 forks source link
automation bot curses-ui python python3 virtual-fisher

Due to time limitations, this project is no longer active/maintained. Feel free to fork it and make improvements.

AFB - Autofishbot

Auto fishing bot made in Python 3 for Virtual Fisher Discord bot.

Features

Note: the experimental-2.0.0 (current) version is still under development, if you are having problems, a stable release (1.2.1.1) can be found here.

Demo

demo

Requirements

Installation and Update

(With Git)

Customization

You can easily customize the options listed below in the automatically generated config file:

#Example
[SYSTEM]
user_token = M@yToke_n123
user_cooldown = 3.5
channel_id = 123456
debug = False

[CAPTCHA]
ocr_api_key = MyK!ey12.3

[NETWORK]
user_agent = 
proxy_ip =
proxy_port =
proxy_auth_user = 
proxy_auth_password = 

[AUTOMATION]
boosts_length = 5
more_fish = True
more_treasures = False
fish_on_exit = True
auto_daily = True
auto_buy_baits = False
auto_sell = True
auto_update_inventory = False

[MENU]
compact_mode = False
refresh_rate = 0.3

[COSMETIC]
pet = dolphin
bait = fish
biome = ocean

Detailed information here.

Captcha Information

All captchas are solved using the OCR.SPACE API for image to text recognition. The reason for choosing an online API was to avoid the annoyance of forcing users to install heavy image recognition modules (and saving the unnecessary effort of creating a specific image recognition model for this type of captcha). Among the API options, the most practical and accessible for the user is OCR.SPACE and, furthermore, it presented a reasonable consistency in correctly identifying the text in the image in the tests performed. Therefore, to automatically solve the captchas, you will need an API KEY.

The methodology is quite straight forward, when a new captcha is detected:

  1. A request is sent asynchronously to the API for each available OCR engine
  2. The answers are filtered to assert those with reasonable certainty
  3. The filtered answers are tested

If all tests fail, a request to regenerate the captcha will be sent (up to 3 times). If the bot, ultimately, fails to solve all captchas, it will wait until you solve it manually.

Keep in mind that the captcha detection method is not flawless, unexpected events can cause some unusual behavior that could influence detection accuracy. Therefore, it should not be left alone without monitoring for longer periods of time.

Demo (normal)

captcha-demo

Demo (with regen)

captcha-demo-wrong-code

HOW DO I GET MY FREE KEY ?

All you need to do is use any email to get it here: https://ocr.space/ocrapi/freekey.

Need more help ?

Changelog

experimental-2.0.0 - 11/20/22 (current)

Added

FULL CHANGELOG HERE

Contributing