def __init__(self, bot): self.bot = bot self.update_stats.start() self.delapi = delpy.Client(bot, bot.config.DEL_TOKEN, loop=bot.loop) self.help_icon = '' self.big_icon = ''
def __init__(self, bot): self.bot = bot self.api = discordlists.Client(self.bot) # Create a Client instance # self.api.set_auth("discordextremelist.xyz", config.DELTOKEN) # Set authorisation token for a bot list self.api.set_auth("top.gg", config.TOPTOKEN) self.api.set_auth("discordbotlist.com", config.DBLTOKEN) self.api.start_loop( ) # Posts the server count automatically every 30 minutes self.delpy = delpy.Client(bot, config.DELTOKEN, bot.loop) self.update_stats.start()