mIRC Home    About    Download    Register    News    Help

Print Thread
Timed repeated message #152997 09/07/06 05:08 PM
Joined: Jul 2006
Posts: 16
S
Sturm Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2006
Posts: 16
I want to make it so every X seconds, a message is repeated. For example, every 60 seconds, it automatocally sends a .notice to everyone on the channel, without me doing anything.

I dont want too complicated of a script.

Re: Timed repeated message #152998 09/07/06 05:15 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
/.timermsg 0 60 .notice #Channel Your Message

Re: Timed repeated message #152999 09/07/06 05:53 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Warning, sending messages in this manner may be against the rules of the channel, and if reported to a channel op may get you kicked and/or banned.

Re: Timed repeated message #153000 09/07/06 09:24 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline
Babel fish
Offline
Babel fish
S
Joined: May 2006
Posts: 87
I too have been searching for this. Can't get mine to work.

Code:
/.timermsg 0 20 .notice #pokenightmare Hello and welcome to our channel.


The bot is opped, and to my understanding the message is suppose to appear every 20 seconds.

Re: Timed repeated message #153001 09/07/06 09:31 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Try your code a bit different:

Code:
on *:connect:{
  .timer 0 20 .notice #pokenightmare Hello and welcome to our channel.
}


Put this in a new remote file, to be sure you dont get double items.
If you don't name the timer, it will automaticly assign a unique number to the timer, which is better.
The above should work.

Re: Timed repeated message *DELETED* #153002 09/07/06 09:32 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Post deleted by RusselB

Re: Timed repeated message #153003 09/07/06 09:35 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Post deleted by OrionsBelt.

Re: Timed repeated message #153004 09/07/06 10:23 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
while it was suggested that /.timer 0 20 was better because mIRC would assign its own number and this was better than using named timers, i disagree
However it may be better to use a name that is more distictive to the alias/script
in this case auto greeting
Code:
on me:*:join:#pokenightmare: .timerautomsg 0 20 .notice Hello and welcome to #pokenightmare.


It is important to note the . is used here so that your bot's log isnt filled with pages of the notice going out.

for testing use
on me:*:join:#pokenightmare: timerautomsg 0 20 notice Hello and welcome to #pokenightmare.

frankly i think 20 seconds is a bit often maybe 300 would be better

Re: Timed repeated message #153005 10/07/06 02:45 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline
Babel fish
Offline
Babel fish
S
Joined: May 2006
Posts: 87
If I wanted to have more timed messages, would I have to create a new remote file for each one, or can I just use the code on the same file?

Re: Timed repeated message #153006 10/07/06 03:01 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You can have as many messages as you want in the one script. What you CAN'T do is have IDENTICAL events in the same script.

Since you already have an ON JOIN event, you can add to it, but you can't put in another ON JOIN event.

If you're going to add to it, I suggest you line the coding and use braces, rather than having everything on one line

Eg: Current
Code:
 on me:*:join:#pokenightmare: .timerautomsg 0 20 .notice Hello and welcome to #pokenightmare. 

New
Code:
on me:*:join:#pokenightmare:{
 .timerautomsg1 0 20 .notice $nick Hello and welcome to #pokenightmare.
.timerautomsg2 0 20 .notice $nick Chat rooms work better when people talk, so don't forget to talk
}