Skip to content

Instantly share code, notes, and snippets.

@mellowagain
Created February 24, 2018 20:53
Show Gist options
  • Save mellowagain/9d5e6a916b174c10eb29a50d3966ca11 to your computer and use it in GitHub Desktop.
Save mellowagain/9d5e6a916b174c10eb29a50d3966ca11 to your computer and use it in GitHub Desktop.
Automatically takes dropped money by the Twilight Sparkle Bot. Use as COG for Discord-Selfbot.
import discord
# Automatically takes drop events from Twilight Sparkle bot
class TwilightDrop:
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 ",take" in embed.description:
await message.channel.send(",take")
def setup(bot):
bot.add_cog(TwilightDrop(bot))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment