Пример #1
0
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')
Пример #2
0
 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('------')
Пример #3
0
 def __init__(self, bot):
     self.bot = bot
     self.t_client = tokage.Client()