All pastes #88136 Raw Edit

Hamish - TCL Example

public text v1 · immutable
·published 2006-07-14 15:31 UTC
rendered paste body
bind pubm - "* !*" pubm_commands
proc pubm_commands {nick host handle channel stuff} {
  if {[string tolower [lindex $stuff 0]] == "!commands"} {
    putserv "PRIVMSG $channel :COmmands for bot
    putserv "PRIVMSG $channel :!hello - says hello
    putserv "PRIVMSG $channel :!watsup - asks you watsup
    return 0
  }
  if {[string tolower [lindex $stuff 0]] == "!hello"} {
    putserv "PRIVMSG $channel :Hello there, $nick!
  }
}