codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#!/usr/bin/env python import xchat __module_name__ = "mushwars Triggers" __module_version__ = "0.1.3-beta" __module_description__ = "/notice $nick my list of triggers and how to use them." def message_cb(word, word_eol, userdata): message=word[1] if message == "!help": xchat.command("notice "+word[0]+" !google <STRING> ~ !time (CST only) ~ !define <TERM> (google define)") xchat.command("notice "+word[0]+" !calc <SIMPLE EXPRESSION> ~ !weather <ZIPCODE> ~ !tvrage <TV SHOW> (includes anime)") else: True xchat.hook_print("Channel Message", message_cb) xchat.hook_print("Your Message", message_cb)
Private
[
?
]
Run code