mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-01 10:45:25 +02:00
Start command update
This commit is contained in:
@ -2,4 +2,6 @@ config = {
|
||||
'bot-token': "Discord bot token",
|
||||
|
||||
'database-uri': "driver://username:password@host:port/database",
|
||||
|
||||
'command-prefix': "<@{}>".format("BOT ID HERE"),
|
||||
}
|
@ -10,9 +10,10 @@ logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime
|
||||
logging.getLogger('TitanBot')
|
||||
logging.getLogger('sqlalchemy')
|
||||
|
||||
class Titan(discord.Client):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
class Titan(commands.Bot):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(command_prefix = config['command-prefix'])
|
||||
self.aiosession = aiohttp.ClientSession(loop=self.loop)
|
||||
self.http.user_agent += ' TitanEmbeds-Bot'
|
||||
self.database = DatabaseInterface(self)
|
||||
|
Reference in New Issue
Block a user