Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async def on_message(self, message):
- if message.channel.is_private and not message.author.bot and not (message.author.id == "230947675837562880"):
- embed = discord.Embed(description = "Someone DMed me!", colour = discord.Colour.teal())
- embed.add_field(name="From: ", value=message.author.name, inline=False)
- embed.add_field(name="Message:", value=message.content, inline=False)
- await self.bot.send_message(self.bot.app_info.owner, embed=embed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement