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.
Help for those learning Tcl or writing their own scripts.
Nimos
Halfop
Posts: 80 Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos » Thu May 01, 2008 11:06 am
the handle is there....
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu May 01, 2008 5:19 pm
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
Nimos
Halfop
Posts: 80 Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos » Thu May 01, 2008 6:06 pm
yes i see it talking
Code: Select all
.channel
NICKNAME HANDLE JOIN IDLE USER@HOST
@Germanfunserver germanfun --- O germanfuns@gtanet....
Code: Select all
.whois germanfuns
HANDLE PASS NOTES FLAGS LAST
germanfun no 0 fghlopBQ never (nowhere)
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu May 01, 2008 7:40 pm
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
Nimos
Halfop
Posts: 80 Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos » Fri May 02, 2008 7:14 am
ooh...I found my mistake
:
The echo bot writes the names of the talkers bold...
it worked with \002 in the bind
last question:
how to integrate [] into the binding?
[*] gives an error message...
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Fri May 02, 2008 2:10 pm
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
Nimos
Halfop
Posts: 80 Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos » Fri May 02, 2008 4:20 pm
hmm...the bot reacts now, BUT...
Code: Select all
bind pubm " ??? \002Nimos\002 test" testproc
proc testproc {nick host chan args} {
putquick "privmsg $chan : Test Successfull! ($args)"
returns
Code: Select all
* Thirildragon * Test Successfull(#germanfunserver {[3] <Nimos> test 123})
why is there so much in $args?
I want only the "123" in the variable...[/code]
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Fri May 02, 2008 4:29 pm
args is a special variable, you really should'nt use it unless you know what you're doing...
Use something like this:
Code: Select all
proc testproc {nick host hand chan text} {
set newtext [join [lrange [split $text] 2 end]]
puthelp "PRIVMSG $chan :Test Successfull! ($newtext)"
}
NML_375
Nimos
Halfop
Posts: 80 Joined: Sun Apr 20, 2008 9:58 am
Post
by Nimos » Sun May 04, 2008 5:04 am
thank you!
spijon
Voice
Posts: 33 Joined: Sun Aug 27, 2006 9:55 pm
Post
by spijon » Thu Jan 29, 2009 9:50 am
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.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu Jan 29, 2009 10:40 am
spijon:
I would probably try something like this:
Code: Select all
bind pubm - "% *text*text2*" test:msg
bind pubm - "% *text2*text*" test:msg
NML_375