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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
psst
Voice
Posts: 4 Joined: Mon Nov 12, 2007 8:40 pm
Post
by psst » Mon Nov 12, 2007 8:45 pm
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?
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Mon Nov 12, 2007 11:15 pm
irc clients have backscroll?
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Tue Nov 13, 2007 12:17 am
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
psst
Voice
Posts: 4 Joined: Mon Nov 12, 2007 8:40 pm
Post
by psst » Tue Nov 13, 2007 3:56 am
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.
psst
Voice
Posts: 4 Joined: Mon Nov 12, 2007 8:40 pm
Post
by psst » Tue Nov 13, 2007 3:57 am
rosc2112 wrote: irc clients have backscroll?
but that won't show you what happened before you logged in.
psst
Voice
Posts: 4 Joined: Mon Nov 12, 2007 8:40 pm
Post
by psst » Wed Nov 14, 2007 2:45 pm
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.