mIRC Home    About    Download    Register    News    Help

Print Thread
#252672 02/05/15 05:06 PM
L
lspo
lspo
L
Hello everyone.

i'm looking for a Kappa per minute Script.

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

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

#252674 02/05/15 10:36 PM
B
Belhifet
Belhifet
B
This isn't possible. Kappa.

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

Last edited by OrFeAsGr; 02/05/15 11:05 PM.
S
Sakana
Sakana
S
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

#252678 03/05/15 04:48 AM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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.

Nillen #252679 03/05/15 09:50 AM
B
Belhifet
Belhifet
B
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