Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_message(word, word_eol, userdata):
- if (xchat.get_context()).get_info("channel") == "#refint":
- if word[1].startswith("potato_generate"):
- if len(word[1].rsplit(" ")) < 2:
- xchat.command("msg %s \"Usage: potato_generate <steam profile id>\"" % (word[0]))
- xchat.command("msg %s \" Note: steam profile id, not steam id\"" % (word[0]))
- else:
- for x in urls:
- 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]))
- xchat.command("query %s \"Please make sure you use these links INSIDE of Steam's web browser\"" % (word[0]))
- xchat.command("query %s \"AND that you are running the game\"" % (word[0]))
- return xchat.EAT_NONE
Advertisement
Add Comment
Please, Sign In to add comment