daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     async def on_message(self, message):
  2.         if message.channel.is_private and not message.author.bot and not (message.author.id == "230947675837562880"):
  3.             embed = discord.Embed(description = "Someone DMed me!", colour = discord.Colour.teal())
  4.             embed.add_field(name="From: ", value=message.author.name, inline=False)
  5.             embed.add_field(name="Message:", value=message.content, inline=False)
  6.             await self.bot.send_message(self.bot.app_info.owner, embed=embed)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top