Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- __module_name__ = "NeonWelcome"
- __module_version__ = "0.1"
- __module_description__ = "welcomes people"
- import xchat
- def back_cb(word, word_eol, userdata):
- name, word1 = word[0], word[1]
- if name == "Cameron" and word1 == "Here":
- xchat.command("say Ohaithere Cameron")
- elif word1 == "back":
- xchat.command("say wb")
- def listnames_cb(word, word_eol, userdata):
- print last_names
- return xchat.EAT_ALL
- def welcome(name):
- global last_names
- for lastname in last_names:
- if name == lastname:
- xchat.command("say wb " + name)
- return xchat.EAT_NONE
- last_names.append(name)
- if name == "Sailor-Moon":
- xchat.command("say Hi Moon!")
- elif name == "Chibi-Haku" or name == "HeikaHaku":
- xchat.command("say Ohai Haku. No ramens for you!")
- elif name == "twilly":
- xchat.command("say ohai twilly")
- elif name == "Renku" or name == "Renku_":
- xchat.command("say Hai Renku.")
- elif name == "GracefulDisaster" or name == "Aeri":
- xchat.command("say Hello Aeri.")
- elif name == "nerdwerld" or name == "velociraptor_nerd":
- xchat.command("me waves at nerd")
- elif name == "xxjellybeanzxx" or name == "xxjellybeanzxx_":
- xchat.command("say Hello jelly beans.")
- elif name == "Cerulaine" or name == "Cerulaine_":
- xchat.command("say Ohaithere Gwendolaine.")
- elif name == "Cameron":
- xchat.command("say ohai Cameron")
- elif name == "LeviathanMist":
- xchat.command("say Hello Mist.")
- elif name == "jessi_":
- xchat.command("say Hai jessi.")
- elif name == "NeonTester":
- xchat.command("say Hi")
- # elif name == last_name and name != "NeonX":
- # xchat.command("say wb " + name)
- last_names = []
- xchat.hook_print("Join", join_cb)
- xchat.hook_print("Part", leave_cb)
- xchat.hook_print("Part with Reason", leave_cb)
- xchat.hook_print("Channel Message", back_cb)
- xchat.hook_command("listnames", listnames_cb)
Add Comment
Please, Sign In to add comment