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 

Logging issue: logging public chat misses bot public message

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
dungeon
Voice


Joined: 06 Apr 2006
Posts: 11

PostPosted: Sat Jun 16, 2007 5:19 pm    Post subject: Logging issue: logging public chat misses bot public message Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jun 16, 2007 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dungeon
Voice


Joined: 06 Apr 2006
Posts: 11

PostPosted: Wed Jun 20, 2007 6:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help 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