mirror of
https://github.com/michivonah/themepark-alerts.git
synced 2025-12-22 20:36:27 +01:00
create test
This commit is contained in:
parent
51245f762e
commit
7ccbf89b9f
3 changed files with 20 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
.env
|
.env
|
||||||
|
__pycache__
|
||||||
16
discord.py
Normal file
16
discord.py
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import os
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
import discord
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
|
discordToken = os.getenv('DISCORD_TOKEN')
|
||||||
|
|
||||||
|
client = discord.Client()
|
||||||
|
|
||||||
|
@client.event
|
||||||
|
async def on_ready():
|
||||||
|
print(f'{client.user} has connected to Discord!')
|
||||||
|
|
||||||
|
client.run(discordToken)
|
||||||
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
# requirements.txt
|
# requirements.txt
|
||||||
python-dotenv
|
python-dotenv
|
||||||
|
discord.py
|
||||||
Loading…
Add table
Add a link
Reference in a new issue