-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core logic added to orchestrate internals
- Loading branch information
1 parent
b0ddade
commit a07662c
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |