Simple script where you type !poke and it'll go... [17:32:56] <&Matt> !poke User
[17:32:56] * ~Bot_Tom pokes User
ON *:TEXT:!poke*:#: {
/describe $chan pokes $2-
}
ON *:TEXT:!aboutpoke*:#: {
/notice $nick This script was made by Matt.
/notice $nick IRC vHost, Matt@Hiding.My.Identity.From.You.Stalkers
/notice $nick Do not reproduce without my explicit permission.
}
I agree, Gummo. Slacker could've done it like so:
on $*:text:/^!(about)?(poke)\b/iS:#:{
if ($2 ison #) && ($regml(1) == poke) { describe # pokes $2 }
if ($regml(1) == about) {
.notice $nick This script was made by Matt.
.notice $nick IRC vHost, Matt@Hiding.My.Identity.From.You.Stalkers
.notice $nick Do not reproduce without my explicit permission.
}
}
you can also do it like this as well if all you are doing is a poke.
on $*:text:/^!((about)?poke)?\s?(\S+)/iS:#:{
if (!$hget(poke,$nick)) {
.hinc -mz poke $nick 3
if ($regml(1) == poke && $regml(2) ison #) { describe # pokes $regml(2) }
elseif ($regml(1) == aboutpoke) {
.notice $nick This script was made by Matt.
.notice $nick IRC vHost, Matt@Hiding.My.Identity.From.You.Stalkers
.notice $nick Do not reproduce without my explicit permission.
}
}
}
on *:TEXT:*:#: {
if (!$hget(p,$nick)) {
hinc -mz p $nick 5
var %x = $strip($1-)
goto %x
:!poke
if ($2 ison #) .describe # pokes $2-
halt
:!aboutpoke
.notice $nick This script was made by Matt.
.notice $nick IRC vHost, Matt@Hiding.My.Identity.From.You.Stalkers
.notice $nick Do not reproduce without my explicit permission.
halt
}
:%x | return
}