RE: A pingus' programming thread
02-08-2018, 10:15 PM
Hello yes. This is the most recent code I worked on, to make my bot Ananke add 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.
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)