diff options
| author | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-06-14 18:54:02 +0200 |
|---|---|---|
| committer | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-06-14 18:54:02 +0200 |
| commit | 791e75cb2beeca45a6edf52b65f7e299e03b5eaf (patch) | |
| tree | cfee93211b7f8ac1c985325aaf8d9399b7a357ca /main.py | |
| parent | temp downloads the files instead (diff) | |
| download | senator-sperma-791e75cb2beeca45a6edf52b65f7e299e03b5eaf.tar.gz senator-sperma-791e75cb2beeca45a6edf52b65f7e299e03b5eaf.zip | |
code-style issues
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,18 +1,22 @@ | |||
| 1 | import datetime | 1 | import datetime |
| 2 | import os | 2 | import os |
| 3 | from dotenv import load_dotenv | 3 | |
| 4 | # create a pycord bot template | 4 | # create a pycord bot template |
| 5 | import discord | 5 | import discord |
| 6 | from discord.ext import commands | 6 | from discord.ext import commands |
| 7 | from dotenv import load_dotenv | ||
| 7 | 8 | ||
| 8 | bot = commands.Bot(intents=discord.Intents.all()) | 9 | bot = commands.Bot(intents=discord.Intents.all()) |
| 10 | |||
| 11 | |||
| 9 | @bot.event | 12 | @bot.event |
| 10 | async def on_ready(): | 13 | async def on_ready(): |
| 11 | print(f"ŁUKASZ SPERMA AKTYWACJA" + datetime.datetime.now().strftime("(%Y-%m-%d %H:%M:%S)")) | 14 | print(f"ŁUKASZ SPERMA AKTYWACJA" + datetime.datetime.now().strftime("(%Y-%m-%d %H:%M:%S)")) |
| 12 | # send message to channel ID | 15 | # send the message to channel ID |
| 13 | channel = bot.get_channel(1081667823799111804) | 16 | channel = bot.get_channel(1081667823799111804) |
| 14 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") | 17 | await channel.send("ŁUKASZ SPERMA AKTYWACJA") |
| 15 | 18 | ||
| 19 | |||
| 16 | if __name__ == "__main__": | 20 | if __name__ == "__main__": |
| 17 | load_dotenv() | 21 | load_dotenv() |
| 18 | extensions = [ | 22 | extensions = [ |
