aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
committerSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
commitca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch)
tree4c175ba876ae35d9248dfab33d2a981fe3cfb207 /main.py
parentchanged printing to proper logging (diff)
downloadsenator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz
senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip
more logging
Diffstat (limited to '')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 592ff9c..f4b093e 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ from dotenv import load_dotenv
11# Configure logging 11# Configure logging
12logging.basicConfig( 12logging.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
25async def on_ready(): 25async 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")