Skip to content

Commit

Permalink
Core logic added to orchestrate internals
Browse files Browse the repository at this point in the history
  • Loading branch information
arbitraryrw committed Jul 24, 2021
1 parent b0ddade commit a07662c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions brokenjukebox/core/core.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import discord
from brokenjukebox.config.config import Config
from brokenjukebox.core.custom_discord_bot import CustomDiscordBot
from brokenjukebox.core.cogs.command_error_handler import CommandErrorHandler
from brokenjukebox.core.cogs.broken_jukebox import BrokenJukebox


class Core:

class Core:
def __init__(self):
# Initialise an instance of the Config class to run initialisation functions
Config()


def start(self):
print("Starting..")
print("[INFO] Starting discord bot..")

bot = CustomDiscordBot(command_prefix='!')

bot.add_cog(BrokenJukebox(bot))
bot.add_cog(CommandErrorHandler(bot))

bot.run(Config.TOKEN)

0 comments on commit a07662c

Please sign in to comment.