mIRC Home    About    Download    Register    News    Help

Print Thread
#252672 02/05/15 05:06 PM
Joined: May 2015
Posts: 1
L
lspo Offline OP
Mostly harmless
OP Offline
Mostly harmless
L
Joined: May 2015
Posts: 1
Hello everyone.

i'm looking for a Kappa per minute Script.

basically it should give me the current kpm in the channel.

lspo #252673 02/05/15 09:50 PM
Joined: Jan 2004
Posts: 1,359
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,359
This post is nonsense

lspo #252674 02/05/15 10:36 PM
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
This isn't possible. Kappa.

lspo #252675 02/05/15 11:05 PM
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Kappa?

Last edited by OrFeAsGr; 02/05/15 11:05 PM.
Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
You'll need to:
- determine the stream's uptime, and then convert that into minutes
- capture Kappas and save it in a variable
Code:
if ($regex($1-,/\bKappa\b/g)) { set %kappa. [ $+ [ # ] ] $regex($1-,/\bKappa\b/g) } 

- periodically check if stream has gone offline in which case you reset the counter

Sakana #252678 03/05/15 04:48 AM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
I think it's probably better to store segments of 10 seconds each for a script like this. A KPM meter on twitch usually refers to not whole-stream session but rather current time session.

Pseudo code:
Check text for Kappa
If match: Increase variable once per each kappa
- Add variable to storage with others that occured within last 10 seconds
On !kpm: check time, take time from 60 seconds ago until now's variables
Divide variables' amounts by 60.

But I agree. It's nonsense. And almost a bit rude of a request.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Nillen #252679 03/05/15 09:50 AM
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Originally Posted By: Nillen
I think it's probably better to store segments of 10 seconds each for a script like this. A KPM meter on twitch usually refers to not whole-stream session but rather current time session.


Ya its very ambiguous what exactly the start time *should* be on a script like this.


Link Copied to Clipboard