|
|
|
@ -44,7 +44,7 @@ emojis: Dict[str, str] = {
|
|
|
|
class Geeksbot(commands.Bot):
|
|
|
|
class Geeksbot(commands.Bot):
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
kwargs["command_prefix"] = self.get_custom_prefix
|
|
|
|
kwargs["command_prefix"] = self.get_custom_prefix
|
|
|
|
self.description = 'I am Geeksbot Dev! Fear me!\n I might just break and take you with me :P'
|
|
|
|
self.description = 'I am Geeksbot! Fear me!'
|
|
|
|
kwargs['description'] = self.description
|
|
|
|
kwargs['description'] = self.description
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
self.aio_session = aiohttp.ClientSession(loop=self.loop)
|
|
|
|
self.aio_session = aiohttp.ClientSession(loop=self.loop)
|
|
|
|
@ -56,13 +56,14 @@ class Geeksbot(commands.Bot):
|
|
|
|
self.infected = {}
|
|
|
|
self.infected = {}
|
|
|
|
self.TOKEN = self.bot_secrets['token']
|
|
|
|
self.TOKEN = self.bot_secrets['token']
|
|
|
|
self.embed_color = discord.Colour.from_rgb(49, 107, 111)
|
|
|
|
self.embed_color = discord.Colour.from_rgb(49, 107, 111)
|
|
|
|
|
|
|
|
self.error_color = discord.Colour.from_rgb(142, 29, 31)
|
|
|
|
del self.bot_secrets['token']
|
|
|
|
del self.bot_secrets['token']
|
|
|
|
self.db_con = database.DatabaseConnection(**self.bot_secrets['db_con'])
|
|
|
|
self.db_con = database.DatabaseConnection(**self.bot_secrets['db_con'])
|
|
|
|
self.default_prefix = 'g~'
|
|
|
|
self.default_prefix = 'g$'
|
|
|
|
self.voice_chans = {}
|
|
|
|
self.voice_chans = {}
|
|
|
|
self.spam_list = {}
|
|
|
|
self.spam_list = {}
|
|
|
|
self.owner_id = 351794468870946827
|
|
|
|
self.owner_id = 351794468870946827
|
|
|
|
self.__version__ = 'v1.0.0b2'
|
|
|
|
self.__version__ = 'v1.0.0'
|
|
|
|
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
|
|
|
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
|
|
|
self.tpe = futures.ThreadPoolExecutor()
|
|
|
|
self.tpe = futures.ThreadPoolExecutor()
|
|
|
|
self.geo_api = '2d4e419c2be04c8abe91cb5dd1548c72'
|
|
|
|
self.geo_api = '2d4e419c2be04c8abe91cb5dd1548c72'
|
|
|
|
|