mIRC Home    About    Download    Register    News    Help

Print Thread
#102004 03/11/04 11:02 AM
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
The weirdest idea slipped in my mind again: could it be possible to have a channelbot start telling a story from a textfile when a channel is 10 minutes idle ...?

Say after the last line typed by either who, 10 minutes till it start reading the textfile line by line...?

Possible?

#102005 03/11/04 12:10 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Interesting idea, can be achieved quite simply by using a single text event and re-initiating a timer

on *:text:*:#yourchan:.timerstory $+ # 1 600 .play # file.txt 3000

You can use /play stop at any time to force an end, the 3000 is the time delay in milliseconds between each outgoing message, and change file.txt to the filename of the story. I made the timer channel specific, allowing you to specify multiple channels for it to operate on

Note that there are other channel events that may be considered activity, such as actions and CTCPs. You can include that same command in their own respective events if you want to consider those too (on *:action:*:#: and ctcp *:*:#:)


Link Copied to Clipboard