diff options
Diffstat (limited to '')
| -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") |
