Created
February 23, 2018 22:57
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qt