async def find_chars(all_ids): tok = tokage.Client() for id in all_ids: character = await tok.get_character(id) if character.name: print(character.name + ' | ' + str(character.favorites) + '\n')
async def on_ready(self): self.t_client = tokage.Client() self.owner_id = 111158853839654912 print('Logged in!') print(self.user.name) print(self.user.id) print('------') print("Cogs loaded:") for extension in startup_extensions: try: self.load_extension(str(extension)) print('"%s" loaded successfully' % extension.split(".")[1]) except Exception as e: exc = '{}: {}'.format(type(e).__name__, e) print('Failed to load extension {}\n{}'.format(extension, exc)) print('------')
def __init__(self, bot): self.bot = bot self.t_client = tokage.Client()