diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c6f27..8c4d919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [1.0.0] - 2024-02-24 +## [1.0.1] - 2024-02-24 ### Added - Configurable logging levels via config.yaml @@ -42,5 +42,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Error reporting and logging clarity - Configuration file structure and validation -[Unreleased]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.0.0...HEAD +### Other +- Added version information + +## [1.0.0] - 2024-02-23 + +### Added +- Initial release +- Basic Icecast stream monitoring +- IRC channel announcements +- Simple command system (!np) +- Basic error handling and reconnection +- Multi-bot support +- Configuration via YAML files + +[Unreleased]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.0.1...HEAD +[1.0.1]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.0.0...v1.0.1 [1.0.0]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/releases/tag/v1.0.0 \ No newline at end of file diff --git a/README.md b/README.md index 9e2f338..7a14e1c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Icecast-metadata-IRC-announcer +[![Version](https://img.shields.io/badge/version-1.0.1-blue.svg)](https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/releases/tag/v1.0.1) + A simple asynchronous Python bot that monitors an Icecast stream and announces track changes to an IRC channel. Supports running multiple instances with different configurations. Note: This is a work in progress. It has only been tested on **Python 3.12.6**. diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8470eb0 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.1 \ No newline at end of file diff --git a/main.py b/main.py index f462bbc..6702a00 100644 --- a/main.py +++ b/main.py @@ -169,6 +169,8 @@ class BotLoggerAdapter(logging.LoggerAdapter): RESTART_FLAG_FILE = ".restart_flag" class IcecastBot: + VERSION = "1.0.1" + def __init__(self, config_path: Optional[str] = None): # Load config self.config = self.load_config(config_path) @@ -179,6 +181,8 @@ class IcecastBot: {'botname': f'{self.config["irc"]["nick"]}@{self.config["stream"]["endpoint"]}'} ) + self.logger.info(f"Starting Icecast IRC Bot v{self.VERSION}") + # Initialize IRC bot with config self.bot = Client( host=self.config['irc']['host'], @@ -340,6 +344,7 @@ class IcecastBot: try: prefix = self.cmd_prefix help_text = ( + f"Icecast IRC Bot v{self.VERSION}\n" f"Available commands:\n" f"{prefix}np - Show current song\n" f"{prefix}help - Show this help message\n"