diff --git a/.gitignore b/.gitignore index 4342f27..e5eb66a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ .env .venv **/*.log +build/ +dist/ +*.spec .idea/** uv.lock \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3a0797e..d95208c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ dependencies = [ [project.optional-dependencies] spielverabredungen = [ "click", + "pyinstaller", ] [tool.setuptools_scm] diff --git a/src/spielverabredungen.py b/src/spielverabredungen.py index a24158a..39ead24 100644 --- a/src/spielverabredungen.py +++ b/src/spielverabredungen.py @@ -34,10 +34,12 @@ class SpielverabredungenClient(Client): def __get_channel(self) -> ForumChannel: guild = self.get_guild(self.config_object.guild_id) assert guild, f'Guild with ID {self.config_object.guild_id} not found' + logging.info('Server name is "%s"', guild.name) channel = discord.utils.get(guild.channels, id=self.config_object.channel_id) assert channel, f'Channel with ID {self.config_object.channel_id} not found in guild {self.config_object.guild_id}' assert isinstance(channel, ForumChannel), f'Channel with ID {self.config_object.channel_id} is not a forum channel' + logging.info('Channel name is "%s"', channel.name) return channel def __check_duplicate_channels(self, channel: ForumChannel, dates: Iterable[datetime.date],