summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorJosh <eeei3.joshua0307lol@gmail.com>2024-11-01 18:13:47 -0400
committerJosh <eeei3.joshua0307lol@gmail.com>2024-11-01 18:13:47 -0400
commit005af272481f43a9c075cc0278b949213fd1ee8e (patch)
tree17d1f17176ea022033df98d3bccf362821e85b81 /main.py
parent27cdae26e243ba74aa47c6ec923d807a0e163d5d (diff)
feat: Created bigresult.py to house important bot logic. Changed bot structure so it is no longer a just wall of decorators, now it is a subclass. Also Created .env for storing important data.
Diffstat (limited to 'main.py')
-rw-r--r--main.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.py b/main.py
index c73f405..771aa17 100644
--- a/main.py
+++ b/main.py
@@ -2,15 +2,12 @@ import os
import discord
from dotenv import load_dotenv
+from bigresult import BotClient
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}")
+intents = discord.Intents.all()
+client = BotClient(intents=intents, command_prefix='!') # This represents our connection with Discord
client.run(TOKEN) # This actually starts our bot \ No newline at end of file