Advertisement
Guest User

Untitled

a guest
Jun 1st, 2016
98
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.  
  4. # CONFIG HERE
  5. updates = ["lol wuuut", "dafuq: THE GAME", "this game makes no sense"]
  6. user = "example@example.com" # Email here
  7. password = "thisisaterriblepassword" # Password here
  8.  
  9.  
  10. client = discord.Client()
  11.  
  12. @client.event
  13. async def on_ready():
  14. while not client.is_closed:
  15. for item in updates:
  16. await client.change_status(game=discord.Game(name=item))
  17. await asyncio.sleep(20)
  18.  
  19. # Credits to sexualrhinoceros for that code
  20. # SMALL NOTE: You won't be able to see your own status, due to how the client displays the status. Others can, though.
  21.  
  22. client.run(user, password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement