|
|
|
|
@ -64,10 +64,11 @@ class Geeksbot(commands.Bot):
|
|
|
|
|
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
|
|
|
|
|
|
|
|
|
async def connect_db(self):
|
|
|
|
|
self.db_con = await asyncpg.connect(host=self.bot_secrets['db_con']['host'],
|
|
|
|
|
database=self.bot_secrets['db_con']['db_name'],
|
|
|
|
|
user=self.bot_secrets['db_con']['user'],
|
|
|
|
|
password=self.bot_secrets['db_con']['password'])
|
|
|
|
|
self.db_con = await asyncpg.create_pool(host=self.bot_secrets['db_con']['host'],
|
|
|
|
|
database=self.bot_secrets['db_con']['db_name'],
|
|
|
|
|
user=self.bot_secrets['db_con']['user'],
|
|
|
|
|
password=self.bot_secrets['db_con']['password'],
|
|
|
|
|
loop=self.loop)
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
async def get_custom_prefix(bot_inst, message):
|
|
|
|
|
|