chore: prepare release 1.0.1
This commit is contained in:
parent
3cd3e98094
commit
00b5818f22
19
CHANGELOG.md
19
CHANGELOG.md
@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## [1.0.0] - 2024-02-24
|
## [1.0.1] - 2024-02-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Configurable logging levels via config.yaml
|
- 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
|
- Error reporting and logging clarity
|
||||||
- Configuration file structure and validation
|
- 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
|
[1.0.0]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/releases/tag/v1.0.0
|
||||||
@ -1,5 +1,7 @@
|
|||||||
# Icecast-metadata-IRC-announcer
|
# Icecast-metadata-IRC-announcer
|
||||||
|
|
||||||
|
[](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.
|
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**.
|
Note: This is a work in progress. It has only been tested on **Python 3.12.6**.
|
||||||
|
|||||||
5
main.py
5
main.py
@ -169,6 +169,8 @@ class BotLoggerAdapter(logging.LoggerAdapter):
|
|||||||
RESTART_FLAG_FILE = ".restart_flag"
|
RESTART_FLAG_FILE = ".restart_flag"
|
||||||
|
|
||||||
class IcecastBot:
|
class IcecastBot:
|
||||||
|
VERSION = "1.0.1"
|
||||||
|
|
||||||
def __init__(self, config_path: Optional[str] = None):
|
def __init__(self, config_path: Optional[str] = None):
|
||||||
# Load config
|
# Load config
|
||||||
self.config = self.load_config(config_path)
|
self.config = self.load_config(config_path)
|
||||||
@ -179,6 +181,8 @@ class IcecastBot:
|
|||||||
{'botname': f'{self.config["irc"]["nick"]}@{self.config["stream"]["endpoint"]}'}
|
{'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
|
# Initialize IRC bot with config
|
||||||
self.bot = Client(
|
self.bot = Client(
|
||||||
host=self.config['irc']['host'],
|
host=self.config['irc']['host'],
|
||||||
@ -340,6 +344,7 @@ class IcecastBot:
|
|||||||
try:
|
try:
|
||||||
prefix = self.cmd_prefix
|
prefix = self.cmd_prefix
|
||||||
help_text = (
|
help_text = (
|
||||||
|
f"Icecast IRC Bot v{self.VERSION}\n"
|
||||||
f"Available commands:\n"
|
f"Available commands:\n"
|
||||||
f"{prefix}np - Show current song\n"
|
f"{prefix}np - Show current song\n"
|
||||||
f"{prefix}help - Show this help message\n"
|
f"{prefix}help - Show this help message\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user