im using a few tcl scripts like tvrage
who has this:
bind pub - !next dlx:tvrage:next
when i use it on a channel:
- -( @Amit86 ): !next heroes
-( Bot ): TV -> The next episode of Heroes is A Clear and Present Danger [03x14], it will air on Monday at 09:00 pm Feb/02/2009
it works ok,
i want to be able to use it like this:
- -( @Amit86 ): check this out the next ep !next heroes
so it can work with text before it, i heard i need to use 'pubm' but it didnt work for me, anyone can give me assistance?
i tried changhing it to:
bind pubm - * !next:dlx:tvrage:next
gave me an error
[02:24] Tcl error [!next:dlx:tvrage:next]: invalid command name "!next:dlx:tvrage:next"
set arg_split [split $arg]
set arg_cmd [lindex $arg_split end-1]
if {$arg_cmd != "!next"} { return }
set arg [join [lrange $arg_split end-1 end]]
14:17:31 <@tomekk> asdf sm flksdja fkljasdkljf ksnadkf sda sdasdasdas !next lost
14:17:32 < botty> TV -> The next episode of Lost is Season 5 Recap Special [05x00], it will air on 08:00 pm
Jan/21/2009
its working, but next time you should contact the author directly
HF