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 

Binds with more than one word and a wildcard....
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Thu May 01, 2008 11:06 am    Post subject: Reply with quote

the handle is there....
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu May 01, 2008 5:19 pm    Post subject: Reply with quote

Strange, since it's properly identified, the lastseen timestamp should've been updated. If you enable public chat on your console (.console +p), do you see the echobot talking through your console?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Thu May 01, 2008 6:06 pm    Post subject: Reply with quote

yes i see it talking

Code:

.channel
 
NICKNAME             HANDLE     JOIN        IDLE  USER@HOST
@Germanfunserver       germanfun  ---  O            germanfuns@gtanet....                                   


Code:

.whois germanfuns

HANDLE    PASS NOTES FLAGS           LAST
germanfun  no   0     fghlopBQ        never (nowhere)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu May 01, 2008 7:40 pm    Post subject: Reply with quote

Then, if you can see the bots chatter in the console/dcc-partyline, it pretty much falls down to improper bindings..

Only other things I could think of, would be some other binding blocking, or possibly some ignore been added.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Fri May 02, 2008 7:14 am    Post subject: Reply with quote

ooh...I found my mistake Confused :
The echo bot writes the names of the talkers bold...

it worked with \002 in the bind Very Happy

last question:
how to integrate [] into the binding?

[*] gives an error message...
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri May 02, 2008 2:10 pm    Post subject: Reply with quote

Enclose the mask with {} to prevent any further parsing of the content (including command replacement [], variables $ and similar)

ie: bind pubm - {% some text*} theproc
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Fri May 02, 2008 4:20 pm    Post subject: Reply with quote

hmm...the bot reacts now, BUT...

Code:

bind pubm " ??? \002Nimos\002 test" testproc

proc testproc {nick host chan args} {
putquick "privmsg $chan : Test Successfull! ($args)"


returns

Code:

* Thirildragon * Test Successfull(#germanfunserver {[3] <Nimos> test 123})


why is there so much in $args?
I want only the "123" in the variable...[/code]
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri May 02, 2008 4:29 pm    Post subject: Reply with quote

args is a special variable, you really should'nt use it unless you know what you're doing...

Use something like this:
Code:
proc testproc {nick host hand chan text} {
 set newtext [join [lrange [split $text] 2 end]]
 puthelp "PRIVMSG $chan :Test Successfull! ($newtext)"
}

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Sun May 04, 2008 5:04 am    Post subject: Reply with quote

thank you!
Back to top
View user's profile Send private message
spijon
Voice


Joined: 27 Aug 2006
Posts: 33

PostPosted: Thu Jan 29, 2009 9:50 am    Post subject: Reply with quote

Is there a way so the wildcard/string only react when two words are used in a sentence.

ex: bind pubm - "% *text text2*" test:msg
"my text blalba text2" and and noget only on text or text2.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jan 29, 2009 10:40 am    Post subject: Reply with quote

spijon:
I would probably try something like this:
Code:
bind pubm - "% *text*text2*" test:msg
bind pubm - "% *text2*text*" test:msg

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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