mIRC Homepage
Posted By: linklance !uptime command help - 18/11/14 02:58 AM
I need help creating a !uptime command. I want it to tell me how long a streamer has been streaming for.

Chat: !uptime
Bot: Stream has been live for: 1 hour and 23 mins.
Posted By: Loki12583 Re: !uptime command help - 18/11/14 03:00 AM
Better start reading some tutorials then
Posted By: westor Re: !uptime command help - 18/11/14 07:01 AM
Originally Posted By: linklance
I need help creating a !uptime command. I want it to tell me how long a streamer has been streaming for.

Chat: !uptime
Bot: Stream has been live for: 1 hour and 23 mins.


Streaming from where? from NASA? you request does not have any sense try to give us some extra details.

I want a woman that is going to be 2 meters blonde super sexy and super hot and with her mouth closed.

Me: !Shut-Te-Fuck-Up
Woman: Of course my love..
Posted By: Sakana Re: !uptime command help - 18/11/14 08:12 AM
Don't know if this is what you're looking for, but I use this simple code for myself. It gives you the time your bot has been connected to IRC, which is always the same as stream uptime for me.



Code:
on *:text:!uptime:#: {
  if ((%flooduptime) || ($($+(%,flooduptime.,$nick),2))) { return }
  set -u20 %flooduptime On
  set -u30 %flooduptime. $+ $nick On
  { msg $chan I've been streaming for $uptime(server, 1)  }
}


Posted By: Nillen Re: !uptime command help - 18/11/14 02:30 PM
Since this is quite obviously a request for twitch. I made a script for another user earlier that you can use.
Do note that there's no need to change any portion of the code; other users came to me with questions about it cause they had changed a part of the code which they thought they were required to.
Posted By: linklance Re: !uptime command help - 19/11/14 12:44 AM
please speaks in proper englush u british fuckle head
© mIRC Discussion Forums