| View previous topic :: View next topic |
| Author |
Message |
dungeon Voice
Joined: 06 Apr 2006 Posts: 11
|
Posted: Sat Jun 16, 2007 5:19 pm Post subject: Logging issue: logging public chat misses bot public message |
|
|
Apologies if this is the wrong place, but I've searched a few places and tried out a few things and I'm not convinced it's something I'm doing wrong (although I'm happy to be proved wrong on that front).
Bot Ver: eggdrop v1.6.17
Bot OS: Linux 2.6.17-1.2142_FC4
I've got my bot logging in various channels and using many TCL scripts successfully, but for some reason any text said by the bot in response to TCL triggers doesn't get logged. If I have, for example:
| Code: | bind pub - !help givehelp
proc givehelp { nick uhost handle chan arg } {
puthelp "PRIVMSG $chan :How can I help you, $nick ..?"
}
|
Then the logs will reflect someone typing in the !help command, but seems to fall deaf on the "puthelp" text.
I tried adding this patch - but still no joy, although I get the impression perhaps I need some "return" values at the end of my TCL (is this right?)
According to this post it sounds like I need to add specific "putlog" commands to echo the text output to the logfile also, however I'm running megahal and have no idea how to modify this module to log AI output also.
Any pointers? Quite simply, I just want the bot to treat anything it says/does in the channel as public chatter too, logging it accordingly. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Jun 16, 2007 6:15 pm Post subject: |
|
|
| forbjok wrote: | | This patch was created for eggdrop 1.6.18, but might work for others as well. (I haven't tested) |
Maybe it doesn't work on 1.6.17. However, user's solution here seems to be sufficient (just load his last code). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
dungeon Voice
Joined: 06 Apr 2006 Posts: 11
|
Posted: Wed Jun 20, 2007 6:00 am Post subject: |
|
|
| Sir_Fz wrote: | | However, user's solution here seems to be sufficient (just load his last code). |
- yah, that was the one I flagged up, but won't work for the megahal module. I *can* edit all my scripts to do so, but was hoping for a single tweak somewhere that I'm missing.
Ah, well. Cheers for the response, anyway! |
|
| Back to top |
|
 |
|
|
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
|
|