diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
| commit | ca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch) | |
| tree | 4c175ba876ae35d9248dfab33d2a981fe3cfb207 /cogs/music/loop.py | |
| parent | changed printing to proper logging (diff) | |
| download | senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip | |
more logging
Diffstat (limited to '')
| -rw-r--r-- | cogs/music/loop.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogs/music/loop.py b/cogs/music/loop.py index 2331840..77f87b7 100644 --- a/cogs/music/loop.py +++ b/cogs/music/loop.py | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | from discord.ext import commands | 1 | from discord.ext import commands |
| 2 | import logging | ||
| 3 | |||
| 4 | logger = logging.getLogger(__name__) | ||
| 2 | 5 | ||
| 3 | 6 | ||
| 4 | class Loop(commands.Cog): | 7 | class Loop(commands.Cog): |
| @@ -18,6 +21,7 @@ class Loop(commands.Cog): | |||
| 18 | looping = not self.is_looping(guild_id) | 21 | looping = not self.is_looping(guild_id) |
| 19 | self.set_looping(guild_id, looping) | 22 | self.set_looping(guild_id, looping) |
| 20 | await ctx.respond(f"looping jest teraz {'włączony' if looping else 'wyłączony'}.") | 23 | await ctx.respond(f"looping jest teraz {'włączony' if looping else 'wyłączony'}.") |
| 24 | logger.info(f"Looping has been {'enabled' if looping else 'disabled'} for guild {guild_id}") | ||
| 21 | 25 | ||
| 22 | 26 | ||
| 23 | def setup(bot): | 27 | def setup(bot): |
