summaryrefslogtreecommitdiff
path: root/main.py
blob: c73f40531591ebbcd2507f6718c6212a1ec700d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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