mIRC Home    About    Download    Register    News    Help

Print Thread
Attempting a send message to channel on timer #255711 15/11/15 02:42 AM
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 }

Re: Attempting a send message to channel on timer [Re: Striker] #255712 15/11/15 02:56 AM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
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

Re: Attempting a send message to channel on timer [Re: OrFeAsGr] #255714 15/11/15 03:27 AM
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.

Re: Attempting a send message to channel on timer [Re: OrFeAsGr] #255715 15/11/15 03:42 AM
Joined: Feb 2015
Posts: 19
Y
Y4kuzi Offline
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.

ProvisionIRCd - advanced mIRC based IRC daemon.
http://www.provisionircd.tk
Re: Attempting a send message to channel on timer [Re: Y4kuzi] #255722 15/11/15 01:30 PM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Perhaps if we see all of your code we could help better.

Re: Attempting a send message to channel on timer [Re: Striker] #255726 15/11/15 06:52 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
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