All pastes #541781 Raw Edit

Something

public text v1 · immutable
·published 2007-06-05 16:40 UTC
rendered paste body
#Respuestas v1.0 by G.L.A


bind pub - !decime pub_choice



proc pub_choice {nick uhost hand chan arg} {

  if {[lindex $arg 0] != ""} {
    set partes [split $arg "|"]
    set pregunta [lindex $partes 0]
    set respuestas [split [lindex $partes 1] :]
    set respuesta [lindex $respuestas [expr {int(rand()*[llength $respuestas])}]]

    putserv "PRIVMSG $chan :\002Syntax:\002 -> !decime web| www.gnulinuxargentina.com.ar:gnulinuxargentina.com.ar"
  } else {
    putserv "PRIVMSG $chan :\002Syntax:\002 -> !decime web| www.gnulinuxargentina.com.ar:gnulinuxargentina.com.ar"

  }
}