A pingus' programming thread

A pingus' programming thread
#2
RE: A pingus' programming thread
Hello yes. This is the most recent code I worked on, to make my bot Ananke add You are now Cobalt Ootkins and you are kinkshaming your crew as a reaction to any message which mentions vore.

Or well, she uses that if there's no kinkshaming emojis on the server. If there are, she uses all the ones there. And if the message is in a meme channel, Ananke reacts with every single kinkshaming emoji she can get her hands on.
Code:
msgcon=message.content.lower()
if  msgcon.count('flavore')!=msgcon.count('vore') or msgcon.count('flavoring')!=msgcon.count('voring') or 'vorarephilia' in msgcon:
    t = msb(message)
    fc = [serv for serv in client.servers if serv.id=='242709218380087296'][0]
    q = [e for e in fc.emojis if e.name=='kinkshaming'][0]
    for serv in client.servers:
        if t and message.server!=serv:
            continue
        memlist = list(serv.emojis)
        for e in memlist:
            if 'kink' in e.name.lower():
                await client.add_reaction(message,e)
    if len(message.reactions)==0:
        await client.add_reaction(message,q)
🐦🐙🐙[Image: nifOFwR.png]🐙🐙
Quote


Messages In This Thread
A pingus' programming thread - by Myeth - 02-08-2018, 09:57 PM
RE: A pingus' programming thread - by Kíeros - 02-08-2018, 10:15 PM
RE: A pingus' programming thread - by SeaWyrm - 02-08-2018, 10:32 PM
RE: A pingus' programming thread - by TehPilot - 02-10-2018, 03:48 AM
RE: A pingus' programming thread - by Reyweld - 02-11-2018, 10:02 PM
RE: A pingus' programming thread - by Sunspider - 02-13-2018, 10:19 AM