Very Initial MVP
There is so much more to do, but I think it is time to commit this to VCS
This commit is contained in:
25
token_bot/token_bot.py
Normal file
25
token_bot/token_bot.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
import aiohttp
|
||||
from dotenv import load_dotenv
|
||||
from interactions import Client, Intents
|
||||
|
||||
|
||||
class TokenBot:
|
||||
def __init__(self):
|
||||
load_dotenv()
|
||||
print("#### WoW Token Bot Startup ####")
|
||||
logging.basicConfig()
|
||||
log = logging.getLogger("TokenBotLogger")
|
||||
log.setLevel(logging.INFO)
|
||||
self.bot = Client(
|
||||
intents=Intents.DEFAULT,
|
||||
asyncio_debug=True,
|
||||
logger=log
|
||||
)
|
||||
|
||||
def run(self):
|
||||
self.bot.load_extension("token_bot.core")
|
||||
self.bot.load_extension("token_bot.tracker")
|
||||
self.bot.start(os.getenv("DISCORD_TOKEN"))
|
||||
Reference in New Issue
Block a user