I have been working on this mIRC bot since the past few days. I wanted to add a script to it but I got stuck at one part. I was wondering if you guys could help me out.
I need something that makes the bot visit a website with a delay of random minutes between the time the command is sent to the channel and the time the next day starts. For example-
[6:01PM] <sudn3sc3d> !visit www.mysite.com
[6:01PM] <bot|00001> Calculating total number of minutes left in the day. Local time: 6:01PM. Minutes left= 359
[6:02PM] <bot|00001> Choosing random number of minutes between 1 and 359..... Visiting www.mysite.com
after 158 minutes...
I already have the part the time calculating part
$round($calc(($ctime($date 11:59pm) - $ctime($date $time)) / 60),0)
(thx to RoCk at irc.rizon.org #mirc)
Please help me out and tell me what should I do next to link all this together