daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top