async def nekomimi(cmd, message, args):
    global links
    if not links:
        filler_message = discord.Embed(color=0xff6699, title='🐱 One moment, filling Sigma with catgirls...')
        fill_notify = await message.channel.send(embed=filler_message)
        links = await grab_post_list('cat_ears')
        filler_done = discord.Embed(color=0xff6699, title=f'🐱 We added {len(links)} catgirls!')
        await fill_notify.edit(embed=filler_done)
    rand_pop = secrets.randbelow(len(links))
    post_choice = links.pop(rand_pop)
    icon = 'https://3.bp.blogspot.com/_SUox58HNUCI/SxtiKLuB7VI/AAAAAAAAA08/s_st-jZnavI/s400/Azunyan+fish.jpg'
    response = generate_embed(post_choice, embed_titles, icon=icon)
    await message.channel.send(None, embed=response)
Exemple #2
0
async def usagimimi(cmd: SigmaCommand, message: discord.Message, args: list):
    global links
    if not links:
        name = cmd.bot.user.name
        filler_message = discord.Embed(color=0xEEEEEE, title=f'🐰 One moment, filling {name} with bunnies...')
        fill_notify = await message.channel.send(embed=filler_message)
        links = await grab_post_list('bunny_ears')
        filler_done = discord.Embed(color=0xEEEEEE, title=f'🐰 We added {len(links)} bunnies!')
        await fill_notify.edit(embed=filler_done)
    rand_pop = secrets.randbelow(len(links))
    post_choice = links.pop(rand_pop)
    icon = 'https://i.imgur.com/DWZLtAk.jpg'
    response = generate_embed(post_choice, embed_titles, 0xEEEEEE, icon=icon)
    await message.channel.send(embed=response)
Exemple #3
0
async def kitsunemimi(cmd: SigmaCommand, message: discord.Message, args: list):
    global links
    if not links:
        filler_message = discord.Embed(
            color=0xff3300, title='🦊 One moment, filling Sigma with foxes...')
        fill_notify = await message.channel.send(embed=filler_message)
        links = await grab_post_list('fox_tail')
        filler_done = discord.Embed(color=0xff3300,
                                    title=f'🦊 We added {len(links)} foxes!')
        await fill_notify.edit(embed=filler_done)
    rand_pop = secrets.randbelow(len(links))
    post_choice = links.pop(rand_pop)
    icon = 'https://static.tvtropes.org/pmwiki/pub/images/Holo_Ears_7860.jpg'
    response = generate_embed(post_choice, embed_titles, 0xff3300, icon=icon)
    await message.channel.send(None, embed=response)
async def kitsunemimi(cmd, pld):
    """
    :param cmd: The command object referenced in the command.
    :type cmd: sigma.core.mechanics.command.SigmaCommand
    :param pld: The payload with execution data and details.
    :type pld: sigma.core.mechanics.payload.CommandPayload
    """
    global links
    if not links:
        name = cmd.bot.user.name
        filler_message = discord.Embed(color=0xff3300, title=f'🦊 One moment, filling {name} with foxes...')
        fill_notify = await pld.msg.channel.send(embed=filler_message)
        links = await grab_post_list('fox_tail')
        filler_done = discord.Embed(color=0xff3300, title=f'🦊 We added {len(links)} foxes!')
        await fill_notify.edit(embed=filler_done)
    rand_pop = secrets.randbelow(len(links))
    post_choice = links.pop(rand_pop)
    icon = 'https://i.imgur.com/g0wv2Pf.jpg'
    response = generate_embed(post_choice, embed_titles, 0xff3300, icon=icon)
    await pld.msg.channel.send(embed=response)