Advertisement
Thelorgoreng

Whitelist code (Chatango Code)

Sep 12th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. whitelist = []
  2. f = open("whitelist.txt", "r") #read-only
  3. print("[INF]Loading Players...")
  4. time.sleep(1)
  5. for name in f.readlines():
  6.   if len(name.strip())>0: whitelist.append(name.strip())
  7. f.close()
  8.  
  9. if "/wl me" == message.body:
  10.         whitelist.append(user.name)
  11.         room.message(user.name+" can use me now. ^^")
  12.       else: room.message("You're silly >_>")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement