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
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
- 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
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

LostShadow #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
Joined: Sep 2007
Posts: 65
X
Babel fish
Offline
Babel fish
X
Joined: Sep 2007
Posts: 65
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.

GamerzWoW
The Official GamerzPlanet WoW Server
bynw #194497 05/02/08 03:34 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Look at this old thread:

Link

-genius_at_work


Link Copied to Clipboard