| View previous topic :: View next topic |
| Author |
Message |
Amit86 Voice
Joined: 20 Dec 2008 Posts: 1
|
Posted: Sat Dec 20, 2008 8:15 pm Post subject: pubm help |
|
|
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" |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Sun Dec 21, 2008 9:20 am Post subject: |
|
|
i tested it with tvrage 2.2 by dlx
change:
| Code: | | bind pub - !next dlx:tvrage:next |
to:
| Code: | | bind pubm - {*!next*} dlx:tvrage:next |
and in dlx:tvrage:next procedure, add this lines after "set prefix ...":
| Code: | 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]] |
| Quote: | 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 |
|
| Back to top |
|
 |
|