From 7ccbf89b9f990c137a8534928734a0f95a36107f Mon Sep 17 00:00:00 2001 From: michivonah Date: Mon, 2 Oct 2023 15:22:24 +0200 Subject: [PATCH] create test --- .gitignore | 3 ++- discord.py | 16 ++++++++++++++++ requirements.txt | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 discord.py 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