diff --git a/config/params.ini b/config/params.ini index e84421f..7565b8d 100644 --- a/config/params.ini +++ b/config/params.ini @@ -12,6 +12,7 @@ difficulty=hell info_screenshots=1 loot_screenshots=0 discord_status_count=20 +discord_log_chicken=1 saved_games_folder= d2r_path=C:\Program Files (x86)\Diablo II Resurrected ; if you set this field to 1, botty will save the top-most visible character template just after diff --git a/src/config.py b/src/config.py index e316bc9..b2bccf1 100644 --- a/src/config.py +++ b/src/config.py @@ -221,6 +221,7 @@ class Config: "message_api_type": self._select_val("general", "message_api_type"), "custom_message_hook": self._select_val("general", "custom_message_hook"), "discord_status_count": False if not self._select_val("general", "discord_status_count") else int(self._select_val("general", "discord_status_count")), + "discord_log_chicken": bool(int(self._select_val("general", "discord_log_chicken"))), "info_screenshots": bool(int(self._select_val("general", "info_screenshots"))), "loot_screenshots": bool(int(self._select_val("general", "loot_screenshots"))), "d2r_path": _default_iff(self._select_val("general", "d2r_path"), "", "C:\Program Files (x86)\Diablo II Resurrected"), diff --git a/src/game_stats.py b/src/game_stats.py index f4330b4..c7b2821 100644 --- a/src/game_stats.py +++ b/src/game_stats.py @@ -72,7 +72,8 @@ class GameStats: self._location_stats[self._location]["chickens"] += 1 self._location_stats["totals"]["chickens"] += 1 - self._messenger.send_chicken(self._location, img) + if Config().general["discord_log_chicken"]: + self._messenger.send_chicken(self._location, img) def log_merc_death(self): self._merc_death_counter += 1