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.

looking for channel history script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
p
psst
Voice
Posts: 4
Joined: Mon Nov 12, 2007 8:40 pm

looking for channel history script

Post by psst »

I want users to be able to ask the bot for the last n messages or the last n minutes or hours of messages.

This would be a logging, and *recall* bot. I have tried searching for history, recall, and replay. I have not found anything. Do you know of such a script? What should I search for to find this capability?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

irc clients have backscroll?
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

bind dcc n readlog dcc:readlog 
proc dcc:readlog { h i a } { 
  if {[llength [split $a]] != 1} { 
    putdcc $i "usage: .$::lastbind <logfile>" 
    putdcc $i [join [glob -nocomplain -directory logs *.log]] 
    return 
  } 
  if {![file exists [set f [lindex [split $a] 0]]] || ![file readable $f]} { 
    putdcc $i "Error..." 
    return 
  } 
  set d [split [read [set fp [open $f r]]] \n] ; close $fp 
  putdcc $i "LOG START" 
  foreach l $d { putdcc $i $l } 
  putdcc $i "LOG END (read [llength $d] lines)" 
  return 
}
Not exactly what you wanted but the above will display the bot log.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
p
psst
Voice
Posts: 4
Joined: Mon Nov 12, 2007 8:40 pm

Post by psst »

Alchera wrote:Not exactly what you wanted but the above will display the bot log.
True, but pretty cool all the same.
If I could make this work in IRC with direct messages, I would be sorted.
p
psst
Voice
Posts: 4
Joined: Mon Nov 12, 2007 8:40 pm

Post by psst »

rosc2112 wrote:irc clients have backscroll?
but that won't show you what happened before you logged in.
p
psst
Voice
Posts: 4
Joined: Mon Nov 12, 2007 8:40 pm

[SOLVED]

Post by psst »

After 3 frustrating days trying to learn eggdrop I gave up and wrote my own Java pircbot. It's very simple but it does what I want and all our users behave nicely.

Thanks for the support, all. I am sure I will be back to eggdrop when I need a cleverer bot.
Post Reply