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 /main.py | |
| parent | changed printing to proper logging (diff) | |
| download | senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip | |
more logging
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -11,7 +11,7 @@ from dotenv import load_dotenv | |||
| 11 | # Configure logging | 11 | # Configure logging |
| 12 | logging.basicConfig( | 12 | logging.basicConfig( |
| 13 | level=logging.INFO, | 13 | level=logging.INFO, |
| 14 | format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | 14 | format='%(filename)s - %(name)s - %(levelname)s - %(message)s', |
| 15 | handlers=[ | 15 | handlers=[ |
| 16 | logging.StreamHandler(sys.stdout) | 16 | logging.StreamHandler(sys.stdout) |
| 17 | ] | 17 | ] |
| @@ -23,7 +23,7 @@ bot = commands.Bot(intents=discord.Intents.all()) | |||
| 23 | 23 | ||
| 24 | @bot.event | 24 | @bot.event |
| 25 | async def on_ready(): | 25 | async def on_ready(): |
| 26 | logger.info("ŁUKASZ SPERMA AKTYWACJA" + datetime.datetime.now().strftime("(%Y-%m-%d %H:%M:%S)")) | 26 | logger.info("ŁUKASZ SPERMA AKTYWACJA") |
| 27 | # send the message to channel ID | 27 | # send the message to channel ID |
| 28 | channel = bot.get_channel(1081667823799111804) | 28 | channel = bot.get_channel(1081667823799111804) |
| 29 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") | 29 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") |
