mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-27 07:27:03 +01:00
Added commands I think
This commit is contained in:
parent
fb304a6337
commit
0b0662e06c
@ -10,11 +10,10 @@ logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime
|
||||
logging.getLogger('TitanBot')
|
||||
logging.getLogger('sqlalchemy')
|
||||
|
||||
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)
|
||||
bot = commands.Bot(command_prefix=config['command-prefix'])
|
||||
aiosession = aiohttp.ClientSession(loop=loop)
|
||||
http.user_agent += ' TitanEmbeds-Bot'
|
||||
database = DatabaseInterface()
|
||||
|
||||
initFirst()
|
||||
|
||||
|
@ -16,7 +16,7 @@ from titanembeds.database.guild_members import GuildMembers
|
||||
from titanembeds.database.unauthenticated_users import UnauthenticatedUsers
|
||||
from titanembeds.database.unauthenticated_bans import UnauthenticatedBans
|
||||
|
||||
class DatabaseInterface(object):
|
||||
class DatabaseInterface():
|
||||
# Courtesy of https://github.com/SunDwarf/Jokusoramame
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
Loading…
Reference in New Issue
Block a user