Implemented Map Chat bot which can render maps into images. Useful for solving captchas.

This commit is contained in:
Milutinke 2022-09-28 00:14:43 +02:00
parent 656aed4705
commit f7263873db
5 changed files with 372 additions and 20 deletions

View file

@ -290,4 +290,20 @@ stop_at_distance=3 # Do not follow the player if he is in the ran
# Log the list of players periodically into a textual file
enabled=false
log_file=playerlog.txt
log_delay=600 # 10 = 1s
log_delay=600 # 10 = 1s
[Map]
# Allows you to render maps into .jpg images
# This is useful for solving captchas which use maps
# NOTE: This is a new feature, we could not find the proper color mappings, but we are continuing with the search
# The colors are not like in minecraft and might look ugly
# This feature is currently only useful for solving captchas, which is it's primary purpose for the time being.
# If some servers have a very short time for solving captchas, enabe auto_render_on_update and prepare to open the file quickly.
# On linux you can use FTP to access generated files.
enabled=false
resize_map=false # Should the map be resized? (Default one is small 128x128)
resize_to=256 # The size to resize the map to (Note: the bigger it is, the lower the quallity is)
auto_render_on_update=false # Automatically render the map once it's received or updated from/by the server
delete_rendered_on_unload=true # Delete all rendered maps on unload or exit
notify_on_first_update=false # Get a notification when you have gotten a map from the server for the first time
# Note: Will be printed for each map in vicinity, could cause spam if there are a lot of maps