Ejemplo n.º 1
0
def register(loop: asyncio.AbstractEventLoop, backend: Backend) -> None:
    uuid = backend.util_get_uuid_from_email(BOT_EMAIL)
    assert uuid is not None
    bs = backend.login(uuid,
                       CLIENT,
                       BackendEventHandler(loop),
                       option=LoginOption.BootOthers)
    assert bs is not None
Ejemplo n.º 2
0
def register(loop: asyncio.AbstractEventLoop, backend: Backend) -> None:
    for i in range(5):
        uuid = backend.util_get_uuid_from_email(
            'bot{}@bot.log1p.xyz'.format(i))
        assert uuid is not None
        bs = backend.login(uuid,
                           CLIENT,
                           BackendEventHandler(loop),
                           option=LoginOption.BootOthers)
        assert bs is not None