mIRC Homepage
Posted By: Bundy Msg #channel every 30 minutes - 17/12/05 07:45 AM
How can I set my bot to msg a channel it is in every 30 minutes?
I have a set of 10 sentences that it must say to the #channel... (in a spesific order)

for example:

<bot> www.mirc.com is a very useful website to visit...

<bot> to change your nickname type /nick <new nick>

<bot> remember our channels get together on the 4th of January 2006

etc...

Thanx alot for your help!!

Kind Regards,
Posted By: schaefer31 Re: Msg #channel every 30 minutes - 17/12/05 08:35 AM
Code:
alias mirchelp {
  msg [color:red]#YourChannel[/color] www.mirc.com is a very useful website to visit...
  msg [color:red]#YourChannel[/color] to change your nickname type /nick &lt;new nick&gt;
  msg [color:red]#YourChannel[/color] remember our channels get together on the 4th of January 2006
}


Put the above in remotes (alt +r), File > New > Paste.

After that, start a timer like this:

/timerhelp 0 1800 mirchelp

0 - Means it does not stop, unless you specifically halt it or disconnect/close mirc.
1800 - This is 30 minutes represented in seconds.
The last part tells it to execute the alias I created which is called 'mirchelp'
Posted By: Bundy Re: Msg #channel every 30 minutes - 17/12/05 09:13 AM
By the way... It works... but sends all 10 sentences at once to the channel. How can i fix this problem?

Thanks alot for your help, its appreciated... Two more things...

1. The 'help' part in /timerhelp is just a name that you give to the timer correct?

2. And if I want to start this script automatically everytime I connect my bot, can I put the following in remotes...

on 1:CONNECT:/timerhelp 0 1800 mirchelp

Happy days!
wink grin
Posted By: Kelder Re: Msg #channel every 30 minutes - 17/12/05 12:28 PM
Put all lines in a text file. Then try
/play #channel messages.txt 2000
This should send all messages to your channel with a 2 second = 2000 ms delay between lines.

If this works, then put in a timer to do this every 30 minutes:
/timer.#channelmessage 0 1800 play #channel messages.txt 2000

If that works (it will wait 30 minutes == 1800 seconds before starting) then you can do it automatically when you join the channel, put this in remotes (alt-r alt-r) at the top or in a new script file:

on me:*:JOIN:#channel:timer.#channelmessage 0 1800 play #channel messages.txt 2000
on me:*:PART:#channel:timer.#channelmessage off
Posted By: speedytuning Re: Msg #channel every 30 minutes - 18/12/05 10:30 AM
i need a time and put this in the remote.


alias mirchelp {
msg #speedy zaterdag 24-12-05 wedstrijd triviant van 12:00 tot 22:00. inschrijfgeld 25.000. 1ste plaats 100.000.
melden bij speedy of via ingame message naar Princeprecia. tot dan
}


but it give no massege in the channel.

what is wrong whit it?
Posted By: speedytuning Re: Msg #channel every 30 minutes - 18/12/05 10:35 AM
i have found the problem.

its working now.
© mIRC Discussion Forums