From e0a042e9a555bf1860fcdaf319c2f7356d59b86d Mon Sep 17 00:00:00 2001 From: JustMaffie Date: Sat, 27 May 2017 23:45:32 +0200 Subject: [PATCH] Added commands I think --- discordbot/titanembeds/bot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index a6ab9f1..6fb72f5 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -10,10 +10,11 @@ logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime logging.getLogger('TitanBot') logging.getLogger('sqlalchemy') -bot = commands.Bot(command_prefix=config['command-prefix']) -self.aiosession = aiohttp.ClientSession(loop=self.loop) -self.http.user_agent += ' TitanEmbeds-Bot' -self.database = DatabaseInterface(self) +def initFirst(self): + self.bot = commands.Bot(command_prefix=config['command-prefix']) + self.aiosession = aiohttp.ClientSession(loop=self.loop) + self.http.user_agent += ' TitanEmbeds-Bot' + self.database = DatabaseInterface(self) def run(self): try: