hello
i am looking for a script where users can say that they are away for some time with a cmd like !away.
can some1 help me out with this ?
Code: Select all
### You can define the user flag in the bind yourself
#### (n: owner), (m: master), (o: op), (-: public)
bind pub n !away display:away
proc display:away {nick uhost hand chan text} {
putserv "PRIVMSG $chan :I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs."
return 0
}
Code: Select all
putserv "PRIVMSG $chan :I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs."
Code: Select all
putserv "PRIVMSG $chan :\001ACTION I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs.\001"