This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

pubm help

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
A
Amit86
Voice
Posts: 1
Joined: Sat Dec 20, 2008 8:10 pm

pubm help

Post by Amit86 »

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"
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

i tested it with tvrage 2.2 by dlx

change:

Code: Select all

bind pub - !next dlx:tvrage:next
to:

Code: Select all

bind pubm - {*!next*} dlx:tvrage:next
and in dlx:tvrage:next procedure, add this lines after "set prefix ...":

Code: Select all

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
Post Reply