Example #1
0
async def acolyte_cycler(ev):
    while True:
        try:
            acolytes, triggers = await get_acolyte_data(ev.db)
            if acolytes:
                response = generate_acolyte_embed(acolytes)
                await send_to_channels(ev, response, 'WarframeAcolyteChannel', triggers)
        except SyntaxError as err:
            pass
        await asyncio.sleep(2)
Example #2
0
async def acolyte_cycler(ev):
    while ev.bot.is_ready():
        try:
            acolytes, triggers = await get_acolyte_data(ev.db)
            if acolytes:
                response = generate_acolyte_embed(acolytes)
                await send_to_channels(ev, response, 'WarframeAcolyteChannel', triggers)
        except Exception:
            pass
        await asyncio.sleep(2)
Example #3
0
async def acolyte_cycler(ev):
    """
    :param ev: The event object referenced in the event.
    :type ev: sigma.core.mechanics.event.SigmaEvent
    """
    while True:
        if ev.bot.is_ready():
            # noinspection PyBroadException
            try:
                acolytes, triggers = await get_acolyte_data(ev.db)
                if acolytes:
                    response = generate_acolyte_embed(acolytes)
                    await send_to_channels(ev, response, 'warframe_acolyte_channel', triggers)
            except Exception:
                pass
        await asyncio.sleep(5)