| View previous topic :: View next topic |
| Author |
Message |
psst Voice
Joined: 12 Nov 2007 Posts: 4
|
Posted: Mon Nov 12, 2007 8:45 pm Post subject: looking for channel history script |
|
|
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? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Nov 12, 2007 11:15 pm Post subject: |
|
|
| irc clients have backscroll? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Nov 13, 2007 12:17 am Post subject: |
|
|
| Code: | 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 |
|
| Back to top |
|
 |
psst Voice
Joined: 12 Nov 2007 Posts: 4
|
Posted: Tue Nov 13, 2007 3:56 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
psst Voice
Joined: 12 Nov 2007 Posts: 4
|
Posted: Tue Nov 13, 2007 3:57 am Post subject: |
|
|
| rosc2112 wrote: | | irc clients have backscroll? |
but that won't show you what happened before you logged in. |
|
| Back to top |
|
 |
psst Voice
Joined: 12 Nov 2007 Posts: 4
|
Posted: Wed Nov 14, 2007 2:45 pm Post subject: [SOLVED] |
|
|
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. |
|
| Back to top |
|
 |
|