Deathmax

Untitled

Apr 18th, 2011
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. def on_message(word, word_eol, userdata):    
  2.     if (xchat.get_context()).get_info("channel") == "#refint":
  3.         if word[1].startswith("potato_generate"):
  4.             if len(word[1].rsplit(" ")) < 2:
  5.                 xchat.command("msg %s \"Usage: potato_generate <steam profile id>\"" % (word[0]))
  6.                 xchat.command("msg %s \"   Note: steam profile id, not steam id\"" % (word[0]))
  7.             else:
  8.                 for x in urls:
  9.                     xchat.command("query %s \"%s: %s?k=%u\"" % (word[0], x[0], x[1], get_key(int(word[1].rsplit(" ")[1]), x[2], x[3]))
  10.                
  11.                 xchat.command("query %s \"Please make sure you use these links INSIDE of Steam's web browser\"" % (word[0]))
  12.                 xchat.command("query %s \"AND that you are running the game\"" % (word[0]))
  13.                
  14.     return xchat.EAT_NONE
Advertisement
Add Comment
Please, Sign In to add comment