| View previous topic :: View next topic |
| Author |
Message |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Thu May 01, 2008 11:06 am Post subject: |
|
|
| the handle is there.... |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu May 01, 2008 5:19 pm Post subject: |
|
|
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 |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Thu May 01, 2008 6:06 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu May 01, 2008 7:40 pm Post subject: |
|
|
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 |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Fri May 02, 2008 7:14 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri May 02, 2008 2:10 pm Post subject: |
|
|
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 |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Fri May 02, 2008 4:20 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri May 02, 2008 4:29 pm Post subject: |
|
|
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 |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Sun May 04, 2008 5:04 am Post subject: |
|
|
| thank you! |
|
| Back to top |
|
 |
spijon Voice
Joined: 27 Aug 2006 Posts: 33
|
Posted: Thu Jan 29, 2009 9:50 am Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jan 29, 2009 10:40 am Post subject: |
|
|
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 |
|
 |
|