mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2015
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2015
Posts: 4
Hi there!

I need some help with my Twitch bot.
I want it to post 2 messages with a specific time between them.

Until now i used this code for 1 message:

on *:TEXT:!startlinks:#: {
if ($nick isop #) {
msg $chan Cycle is starting!
.timerDonation 0 900 .play # C:\Users\Lukas\Desktop\...
}
}


on *:TEXT:!stoplinks:#: {
if ($nick isop #) {
msg $chan Cycle is stopping!
.timerDonation off
}
}


I want to have it like that:

The Donation message should be posted every 900 seconds.
450 seconds after executing the command it should start posting another message every 900 seconds.


Is that possible with only one command?

Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
900 + 450 = 1350
So
Code:
.timer 0 1350 command


I think this is what you need smile

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
That'll get out of sync, you need one 1350 timer to call a 900 timer.

Joined: Nov 2015
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2015
Posts: 4
Thanks alot laugh

Now that i've seen it, it's pretty obvious ^^


Link Copied to Clipboard