mIRC Homepage
Posted By: Sturm Timed repeated message - 09/07/06 05:08 PM
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.
Posted By: schaefer31 Re: Timed repeated message - 09/07/06 05:15 PM
/.timermsg 0 60 .notice #Channel Your Message
Posted By: RusselB Re: Timed repeated message - 09/07/06 05:53 PM
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.
Posted By: Sableye2 Re: Timed repeated message - 09/07/06 09:24 PM
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.
Posted By: OrionsBelt Re: Timed repeated message - 09/07/06 09:31 PM
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.
Posted By: RusselB Re: Timed repeated message *DELETED* - 09/07/06 09:32 PM
Post deleted by RusselB
Posted By: OrionsBelt Re: Timed repeated message - 09/07/06 09:35 PM
Post deleted by OrionsBelt.
Posted By: MikeChat Re: Timed repeated message - 09/07/06 10:23 PM
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
Posted By: Sableye2 Re: Timed repeated message - 10/07/06 02:45 AM
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?
Posted By: RusselB Re: Timed repeated message - 10/07/06 03:01 AM
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
}
 

© mIRC Discussion Forums