egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pubm help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Amit86
Voice


Joined: 20 Dec 2008
Posts: 1

PostPosted: Sat Dec 20, 2008 8:15 pm    Post subject: pubm help Reply with quote

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
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Sun Dec 21, 2008 9:20 am    Post subject: Reply with quote

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 Smile
HF
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber