Created
February 24, 2018 20:53
-
-
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.
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 | |
# 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