mIRC Home    About    Download    Register    News    Help

Print Thread
#249210 18/11/14 02:58 AM
Joined: Nov 2014
Posts: 2
L
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Nov 2014
Posts: 2
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.

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Better start reading some tutorials then

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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..


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
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)  }
}



Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 2
L
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Nov 2014
Posts: 2
please speaks in proper englush u british fuckle head


Link Copied to Clipboard