diff options
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 = [ |
