Guest User

Untitled

a guest
Jan 18th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if message.startswith("!"):
  2.  
  3. if command = "login":
  4. hashed = md5.new(message[1]).hexdigest()
  5. if hashed == password:
  6. admins.append[username]
  7.  
  8. if command = "modload" and username in admins:
  9. if message[1] not in loadedmods:
  10. import_string=("from modules.%s import *" % message[1])
  11. loadedmods.append(message[1].modname())
  12. exec import_string
  13.  
  14. if message[1] == "!help":
  15. checkuser(rbuffer[4],connection,config)
  16. else:
  17. try:
  18. check =[key for key in locals().keys() if isinstance(locals()[key], type(sys)) and not key.startswith('__')]:
  19. for item in check.remove(command):
  20. item.command()
Add Comment
Please, Sign In to add comment