Added commands I think

This commit is contained in:
JustMaffie 2017-05-27 23:45:32 +02:00
parent 691625f6a8
commit e0a042e9a5

View File

@ -10,10 +10,11 @@ logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime
logging.getLogger('TitanBot') logging.getLogger('TitanBot')
logging.getLogger('sqlalchemy') logging.getLogger('sqlalchemy')
bot = commands.Bot(command_prefix=config['command-prefix']) def initFirst(self):
self.aiosession = aiohttp.ClientSession(loop=self.loop) self.bot = commands.Bot(command_prefix=config['command-prefix'])
self.http.user_agent += ' TitanEmbeds-Bot' self.aiosession = aiohttp.ClientSession(loop=self.loop)
self.database = DatabaseInterface(self) self.http.user_agent += ' TitanEmbeds-Bot'
self.database = DatabaseInterface(self)
def run(self): def run(self):
try: try: