mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2015
Posts: 2
S
Striker Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Nov 2015
Posts: 2
It has been quite some time since I have done anything on Mirc, however that being said I am attempting to send a message to the channel the bot is in every 60 minutes. However I am positive I am doing something wrong, if someone could give me some advice on my mistake and show me how to fix it I would appreciate it. In my scripts editor under remote I did this

{ timer -m 1 3600 msg $chan The message to channel }

Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Hi! The -m switch makes the timer work with miliseconds so you don't need it. And to repeat you need to change 1 to 0 because 1 means 1 time, 0 means forever smile
Code:
timer 0 3600 msg $chan The message to channel

Joined: Nov 2015
Posts: 2
S
Striker Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Nov 2015
Posts: 2
I input the code as you put, however it isn't posting at all in the channel. I checked the brackets after I changed it.

Joined: Feb 2015
Posts: 19
Y
Pikka bird
Offline
Pikka bird
Y
Joined: Feb 2015
Posts: 19
Originally Posted By: OrFeAsGr
Hi! The -m switch makes the timer work with miliseconds so you don't need it. And to repeat you need to change 1 to 0 because 1 means 1 time, 0 means forever smile
Code:
timer 0 3600 msg $chan The message to channel


This should work. Is $chan getting evaluated in the event? If not, that explains why it does not work.
Either that, or you have a syntax error in your script or the event does not get triggered at all.

Last edited by Y4kuzi; 15/11/15 03:42 AM.
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Perhaps if we see all of your code we could help better.

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
I think he is missing the trigger. His first post said he has this in his remotes file:

Originally Posted By: Striker


{ timer -m 1 3600 msg $chan The message to channel }



If that's true, you need a trigger in your remotes file as well.

Code:
on *:text:*!trigger:#: {
 .timer 1 3600 msg $chan The message to channel 
}


twitter @keyeslol

Link Copied to Clipboard