Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import discord
  2. import asyncio
  3. import base64
  4.  
  5. client = discord.Client()
  6.  
  7. @client.event
  8. async def on_ready():
  9. print('Logged in as')
  10. print(client.user.name)
  11. print(client.user.id)
  12. print('------')
  13.  
  14. @client.event
  15. async def on_message(message):
  16. if message.content.startswith('!xpfarm'):
  17. counter = 0
  18. while True:
  19. counter += 15
  20. tmp = await client.send_message(message.channel, 'XP increased by ' + str(counter))
  21. await asyncio.sleep(60)
  22. await client.delete_message(tmp)
  23. elif str(message.channel) == 'logs':
  24. print(message.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement