mIRC Home    About    Download    Register    News    Help

Print Thread
#194440 04/02/08 05:10 PM
Joined: Aug 2003
Posts: 66
B
bynw Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Aug 2003
Posts: 66
Ok for this request I will give some beginning details.

1) I have a bot that logs several channels. (mainly for compiling chat stats using mircstats)

2) Sometimes one can come into a channel and there is already a topic of chat taking place and it's hard to determine what exactly the subject matter is while the chat is flowing by ...

So, the possible solution is to have a bot, sit in the channel and log the channel and then ask that bot to play back what has transpired say in the last 15 minutes of time.

Thoughts on how that script would look?

Thanks!!!

bynw #194444 04/02/08 06:11 PM
5
5618
5618
5
- Have the log use timestamping
- Read from the bottom of the log and match for the minutes 15 minutes earlier, or the match closest to that (e.g. minute -16 if nothing was said 15 minutes before, or -17). So if the time is 12:46 you look for 12:31.
- use $readn to get the last read line and then read from that line towards the bottom and message that to the nick.

Something like that. ;P

Last edited by 5618; 04/02/08 06:12 PM.
bynw #194457 04/02/08 11:29 PM
L
LostShadow
LostShadow
L
Play back the last 15 minutes of conversation?

Wow - amazing opportunity to flood the channel for the 99% of the channel that have to re-witness what happened for the sake of 1 user making a request.

I'd rather just make a script that /dcc send $nick log.txt or whatever for an on text # or ? or on notice event.

-Neal.

#194469 05/02/08 01:50 AM
Joined: Aug 2003
Posts: 66
B
bynw Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Aug 2003
Posts: 66
the results would be played back to the user only ... not the channel via msg or notice

bynw #194487 05/02/08 10:48 AM
X
XTZGZoReX
XTZGZoReX
X
Via msg or notice would simply kill you bot. Period.

Use DCC Chat, it's way better.

Last edited by XTZGZoReX; 05/02/08 10:49 AM.
bynw #194497 05/02/08 03:34 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
Look at this old thread:

Link

-genius_at_work


Link Copied to Clipboard