diff --git a/.gitignore b/.gitignore index 2eea525..dc12cb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.env \ No newline at end of file +.env +__pycache__ \ No newline at end of file diff --git a/discord.py b/discord.py new file mode 100644 index 0000000..4002cc8 --- /dev/null +++ b/discord.py @@ -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) + diff --git a/requirements.txt b/requirements.txt index b50c9aa..c12fc15 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ # requirements.txt -python-dotenv \ No newline at end of file +python-dotenv +discord.py \ No newline at end of file