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 

looking for channel history script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
psst
Voice


Joined: 12 Nov 2007
Posts: 4

PostPosted: Mon Nov 12, 2007 8:45 pm    Post subject: looking for channel history script Reply with quote

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


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Nov 12, 2007 11:15 pm    Post subject: Reply with quote

irc clients have backscroll?
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Nov 13, 2007 12:17 am    Post subject: Reply with quote

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


Joined: 12 Nov 2007
Posts: 4

PostPosted: Tue Nov 13, 2007 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message
psst
Voice


Joined: 12 Nov 2007
Posts: 4

PostPosted: Tue Nov 13, 2007 3:57 am    Post subject: Reply with quote

rosc2112 wrote:
irc clients have backscroll?

but that won't show you what happened before you logged in.
Back to top
View user's profile Send private message
psst
Voice


Joined: 12 Nov 2007
Posts: 4

PostPosted: Wed Nov 14, 2007 2:45 pm    Post subject: [SOLVED] Reply with quote

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