From e21ccb4bb897b20c1565fc0aba773b5dd67a317d Mon Sep 17 00:00:00 2001 From: Marcin Macierzanka Date: Fri, 21 Aug 2026 12:55:39 +0200 Subject: [PATCH] Adjust version and main bot class name --- README.md | 2 +- pyproject.toml | 2 +- zyrarbot/__init__.py | 2 +- zyrarbot/application.py | 4 ++-- zyrarbot/bot/client.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 79c294e..1925f50 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ zyrarbot/ │ ├── notification_channel_resolver.py NotificationChannelResolver │ └── music_player.py MusicPlayer ├── bot/ Warstwa Discorda -│ ├── client.py ZyrarBot +│ ├── client.py MusicBot │ ├── guild_resolver.py GuildResolver │ └── cogs/music_cog.py MusicCog └── web/ Panel webowy (FastAPI) diff --git a/pyproject.toml b/pyproject.toml index b51e9b4..5cd8bab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "zyrarbot" -version = "2.0.0" +version = "4.0.0" description = "Bot muzyczny Discord z panelem webowym" requires-python = ">=3.13" dynamic = ["dependencies"] diff --git a/zyrarbot/__init__.py b/zyrarbot/__init__.py index bc3575f..ca78a5b 100644 --- a/zyrarbot/__init__.py +++ b/zyrarbot/__init__.py @@ -2,4 +2,4 @@ __all__ = ["__version__"] -__version__ = "2.0.0" +__version__ = "4.0.0" diff --git a/zyrarbot/application.py b/zyrarbot/application.py index a40c4a6..45ca9f1 100644 --- a/zyrarbot/application.py +++ b/zyrarbot/application.py @@ -7,7 +7,7 @@ import uvicorn from zyrarbot.audio.media_probe import MediaProbe from zyrarbot.audio.track_factory import TrackFactory -from zyrarbot.bot.client import ZyrarBot +from zyrarbot.bot.client import MusicBot from zyrarbot.bot.guild_resolver import GuildResolver from zyrarbot.music.music_player import MusicPlayer from zyrarbot.music.notification_channel_resolver import NotificationChannelResolver @@ -38,7 +38,7 @@ class Application: self.uploads = UploadsRepository(self.settings.uploads_dir) self.tracks = TrackFactory(self.uploads, MediaProbe()) - self.bot = ZyrarBot(self.settings, self.tracks, self.uploads) + self.bot = MusicBot(self.settings, self.tracks, self.uploads) self.guilds = GuildResolver(self.bot) self.player = MusicPlayer( bot=self.bot, diff --git a/zyrarbot/bot/client.py b/zyrarbot/bot/client.py index 6098df1..a6dc4e5 100644 --- a/zyrarbot/bot/client.py +++ b/zyrarbot/bot/client.py @@ -14,8 +14,8 @@ from zyrarbot.storage.uploads_repository import UploadsRepository logger = logging.getLogger(__name__) -class ZyrarBot(commands.Bot): - """Klient Discorda ŻyrarBOT-a rejestrujący cog muzyczny i synchronizujący komendy. +class MusicBot(commands.Bot): + """Klient Discorda rejestrujący cog muzyczny i synchronizujący komendy. ``player`` przypisuje kompozycja aplikacji tuż po utworzeniu klienta - odtwarzacz potrzebuje bota, a bot odtwarzacza, więc pętlę domykamy tutaj.