Advertisement
Sc2ad

ez discord bot

Jun 14th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import discord
  2.  
  3. READY_STATUS = "Discord Bot now online!"
  4.  
  5. client = discord.Client()
  6.  
  7. @client.event
  8. async def on_ready():
  9. print("Logged into discord!")
  10. await client.change_presence(game=discord.Game(READY_STATUS))
  11.  
  12. @client.event
  13. async def on_message(message):
  14. if message.author.id == "134482734771994624":
  15. await client.send_message(message.author, "I love scadman!")
  16.  
  17. if __name__ == "__main__":
  18. with open("discord.key", "r") as f:
  19. client.run(f.readline())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement