mIRC Home    About    Download    Register    News    Help

Print Thread
#119674 08/05/05 09:25 PM
Joined: Apr 2005
Posts: 7
S
saber Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2005
Posts: 7
Is there anyway to have myself say something after a certain period of no one saying anything?

#119675 08/05/05 09:28 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean: /timer 0 30 /msg $chan This is an auto message every 30 seconds.

Or did you mean something else?

-Andy

Last edited by SladeKraven; 08/05/05 09:29 PM.
#119676 08/05/05 09:32 PM
Joined: Apr 2005
Posts: 7
S
saber Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2005
Posts: 7
Oops, I meant is there a away to do that only when it's been quiet for 30 minutes?

Last edited by saber; 08/05/05 09:34 PM.
#119677 08/05/05 09:36 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Ok, you're welcome.

Just one minor note, the 0 means repetition and can be any number you like, we use 0 for unlimited repetitions. Changing the 0 to 5 will repeat only 5 times every 30 seconds.

Further help: /help /timer

-Andy

#119678 08/05/05 10:22 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
on *:TEXT:*:#channelname: .timeridlemsg_ $+ $cid $+ $chan 1 1800 msg $chan Hey, it's quiet here...
on *:ACTION:*:#channelname: .timeridlemsg_ $+ $cid $+ $chan 1 1800 msg $chan Hey, it's quiet here...
on *:NOTICE:*:#channelname: .timeridlemsg_ $+ $cid $+ $chan 1 1800 msg $chan Hey, it's quiet here...
on me:*:PART:#channelname: .timeridlemsg_ $+ $cid $+ $chan off
on me:*:JOIN:#channelname: .timeridlemsg_ $+ $cid $+ $chan 1 1800 msg $chan Hey, it's quiet here...
on *:INPUT:#channelname: {
if (/* !iswm $1) .timeridlemsg_ $+ $cid $+ $chan 1 1800 msg $chan Hey, it's quiet here...
}

Put the above code in a fresh file in remotes (alt-r alt-r File->New)
Replace #channelname with the actual name of the channel you want to do this in (make sure you have permission to run such a script in that channel, some channels kickban for any automated text)

What it does: on each event, it (re)sets a timer to trigger 1 time with a delay of 1800 seconds and message the channel with some text. The timer is disabled when you /part the channel or disconnect from the server. Any text you type in the channel is also considered activity, unless you use /msg #channelname this won't be seen or something similar. Also messages that are run from a script aren't seen.

To have it work on more channels, either just copy the code and change the channelname if you want to have another message or delay, or separate both channels with a comma if the same action is ok.

#119679 08/05/05 10:31 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Code:
on @*:text:*:#channel:{
set %quiet $ctime
.timerquiet 0 1800 checktime
}
alias checktime {
var %shhh = $calc($ctime - %quiet)
if (%shhh > 1800) msg #channel your msg here
}

I think this will work, I didn't test it

Last edited by MikeChat; 08/05/05 10:32 PM.

Link Copied to Clipboard