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.

Logging eggdrop channel output?

Old posts that have not been replied to for several years.
p
paketo

Logging eggdrop channel output?

Post by paketo »

I'm interested in logging whatever the bot says to a channel, but found no flag to that.

is there any option or script to do so?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

##### LOG FILES #####

# Eggdrop is capable of logging various things, from channel chatter to
# commands people use on the bot and file transfers. Logfiles are normally
# kept for 24 hours. Afterwards, they will be renamed to "(logfile).yesterday".
# After 48 hours, they will be overwritten by the logfile of the next day.
#
# Events are logged by certain categories. This way, you can specify
# exactly what kind of events you want sent to various logfiles.
#
# Logfile flags:
#   b - information about bot linking and userfile sharing
#   c - commands
#   d - misc debug information
#   h - raw share traffic
#   j - joins, parts, quits, and netsplits on the channel
#   k - kicks, bans, and mode changes on the channel
#   m - private msgs, notices and ctcps to the bot
#   o - misc info, errors, etc (IMPORTANT STUFF)
#   p - public text on the channel
#   r - raw incoming server traffic
#   s - server connects, disconnects, and notices
#   t - raw botnet traffic
#   v - raw outgoing server traffic
#   w - wallops (make sure the bot sets +w in init-server)
#   x - file transfers and file-area commands
#
# Note that modes d, h, r, t, and v can fill disk quotas quickly. There are
# also eight user-defined levels (1-8) which can be used by Tcl scripts.
#
# Each logfile belongs to a certain channel. Events of type 'k', 'j', and 'p'
# are logged to whatever channel they happened on. Most other events are
# currently logged to every channel. You can make a logfile belong to all
# channels by assigning it to channel "*".
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
p
paketo

Post by paketo »

None of those log options does what I want.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Considering the bot "says" almost nothing .... :P

Check the TCL Archives there might be a script there to capture all that is said in a channel.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

see if this helps.....click me
:mrgreen:

EDITED: Maybe this will work.....

Code: Select all

set botchatlog "botchat.log" 

bind pubm - * pubm:botchat 

proc pubm:botchat  {nick uhost hand chan text} { 
 global botnick botchatlog 
  if {![$nick == $botnick]} {return 0} 
    set bc [open $botchatlog w] 
    puts $bc "$text" 
    close $bc 
}
O
OBcecado
Voice
Posts: 8
Joined: Tue Jul 27, 2004 1:55 pm

Post by OBcecado »

Hi, this is my first post here. i dug this thread up, because it is something i need to do now, but my problem is the following, i want to put the channel log online, and if possible include the bot speech in there aswell, once that code posted above logs what the bot says, but in a separate file.



Thanks in advance.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You're looking for a channel stats script by the look of it. There's an excellent perl one called pisg available or, you may find a TCL script in the TCL Archive. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

if {![isbotnick $nick]} { return } not if {![$nick == $botnick]} {return 0} fool, or even if {![string equal -nocase $botnick $nick]} { return } cos BLA ain't equal with bla or BLa and so on.
Once the game is over, the king and the pawn go back in the same box.
O
OBcecado
Voice
Posts: 8
Joined: Tue Jul 27, 2004 1:55 pm

Post by OBcecado »

I managed to start logging stuff using the following:

Code: Select all

putloglev p $chan "<$botnick\> $blah"
But after that i found another thing i wanted to get logged, the user executing the trigger, that is not logged.
If anyone can help me that way.
If i'm not wrong pisg generates stats, it's not what i want, just the logfile with every public messages, including, the users using the trigger and the bot answering, that's all.

Thanks in advance.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Via DCC type .help whois

There's a raft of flags available that might help you. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

caesar wrote:if {![isbotnick $nick]} { return } not if {![$nick == $botnick]} {return 0} fool
Totally appreciate this being pointed out; I'm takin it on faith that the word "fool" is not directed at me personally, but I am still very curious as to why it is there.....?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

heh, it's an expresion not something adressed directly to you personally. :P
Once the game is over, the king and the pawn go back in the same box.
O
OBcecado
Voice
Posts: 8
Joined: Tue Jul 27, 2004 1:55 pm

Post by OBcecado »

Hi, it's me again.
Alchera wrote:Via DCC type .help whois

There's a raft of flags available that might help you. :)
Sorry, but i couldn't find a flag that allowed me to set the bot logging _everything_ in the channel, now what i'm needing is to log the user asking the trigger.

Thanks in advance.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

caesar wrote:heh, it's an expresion not something adressed directly to you personally. :P
8) ty caesar
OBcecado wrote:Hi, it's me again.
Sorry, but i couldn't find a flag that allowed me to set the bot logging _everything_ in the channel, now what i'm needing is to log the user asking the trigger.
c commands people use (via msg or dcc)
O
OBcecado
Voice
Posts: 8
Joined: Tue Jul 27, 2004 1:55 pm

Post by OBcecado »

Hi, sorry to keep buggin you, bu i can't get that working, i suppose i'm doing it right like this:

Code: Select all

logfile pc #xupaki "/home/ob/public_html/logs/xupaki.txt"
Thanks for helping.
Locked