summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh <eeei3.joshua0307lol@gmail.com>2024-11-01 12:46:13 -0400
committerJosh <eeei3.joshua0307lol@gmail.com>2024-11-01 12:46:13 -0400
commit27cdae26e243ba74aa47c6ec923d807a0e163d5d (patch)
treef5bf2746844685794a2cf1aeefed1849667ed463
parent0d4fee9e530aebea6cc93c2c263f9256291b7f8c (diff)
feat: Created basic skeleton bot that connects to Discord and runs the bot.
-rw-r--r--main.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.py b/main.py
index efeb59d..c73f405 100644
--- a/main.py
+++ b/main.py
@@ -1,4 +1,16 @@
import os
import discord
+from dotenv import load_dotenv
+load_dotenv()
+TOKEN = os.getenv('DISCORD_TOKEN')
+
+client = discord.Client() # This represents our connection with Discord
+
+# This runs when our bot has successfully made contact with Discord and is ready to go.
+@client.event
+async def on_ready():
+ print(f"The big result bot is ready! Username:{client.user}")
+
+client.run(TOKEN) # This actually starts our bot \ No newline at end of file