mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2005
Posts: 54
B
Bundy Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Dec 2005
Posts: 54
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,

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
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'

Joined: Dec 2005
Posts: 54
B
Bundy Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Dec 2005
Posts: 54
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

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
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

Joined: Dec 2005
Posts: 5
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2005
Posts: 5
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?

Joined: Dec 2005
Posts: 5
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2005
Posts: 5
i have found the problem.

its working now.


Link Copied to Clipboard