Skip to content

Instantly share code, notes, and snippets.

@mellowagain
Created February 23, 2018 22:57
Show Gist options
  • Save mellowagain/580010eda5951d07a4e39116352b9208 to your computer and use it in GitHub Desktop.
Save mellowagain/580010eda5951d07a4e39116352b9208 to your computer and use it in GitHub Desktop.
Automatically catches Nekos sent by the Neko Bot. Use as COG for Discord-Selfbot.
import discord
# Catches Nekos from Nekobot automatically
class NekoCatch:
def __init__(self, bot):
self.bot = bot
async def on_message(self, message):
if message.embeds:
if len(message.embeds) > 0:
for embed in message.embeds:
if ">catch" in embed.description:
await message.channel.send(">catch")
def setup(bot):
bot.add_cog(NekoCatch(bot))
@voiding
Copy link

voiding commented Aug 31, 2018

qt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment