mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-28 16:07:02 +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('TitanBot')
|
||||||
logging.getLogger('sqlalchemy')
|
logging.getLogger('sqlalchemy')
|
||||||
|
|
||||||
def initFirst(self):
|
bot = commands.Bot(command_prefix=config['command-prefix'])
|
||||||
self.bot = commands.Bot(command_prefix=config['command-prefix'])
|
aiosession = aiohttp.ClientSession(loop=loop)
|
||||||
self.aiosession = aiohttp.ClientSession(loop=self.loop)
|
http.user_agent += ' TitanEmbeds-Bot'
|
||||||
self.http.user_agent += ' TitanEmbeds-Bot'
|
database = DatabaseInterface()
|
||||||
self.database = DatabaseInterface(self)
|
|
||||||
|
|
||||||
initFirst()
|
initFirst()
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ from titanembeds.database.guild_members import GuildMembers
|
|||||||
from titanembeds.database.unauthenticated_users import UnauthenticatedUsers
|
from titanembeds.database.unauthenticated_users import UnauthenticatedUsers
|
||||||
from titanembeds.database.unauthenticated_bans import UnauthenticatedBans
|
from titanembeds.database.unauthenticated_bans import UnauthenticatedBans
|
||||||
|
|
||||||
class DatabaseInterface(object):
|
class DatabaseInterface():
|
||||||
# Courtesy of https://github.com/SunDwarf/Jokusoramame
|
# Courtesy of https://github.com/SunDwarf/Jokusoramame
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
Loading…
Reference in New Issue
Block a user