I spent the day rummaging around in chatterbots brain. It now understands Karma and displays it in cb stats.
You can just do:
[LanX]++ [NodeReaper]-- I disagree! [NodeReaper]-- shouldn't have reaped my post!
Yes, negative Karma also works. The feature is quite flexible, pretty much anything in square brackets that the Monastery can turn into links can be given Karma. So if you like, for example, CB Stats, you can do:
[id://11155739]++
Karma-Parsing is rather simple minded:
... my $vote = 0; if($decoded =~ /\[([^\]]+?)\]([+-]{2})/) { ($id, $type) = ($1, $2); if($type eq '++') { $vote++; } elsif($type eq '--') { $vote--; } } ...
Karma points are tracked for 7 days. Well, technically, they remain in my database forever. But to match the other CB Stats, i only look at the last 7 days.
I also track WHO is handing out the points and show the 5 most active Karma givers in the stats as well.
Another special feature is that chatterbot can watch homenodes and "last seen" time and show last online time of a user. This may have serious timezone bugs!. I'm not sure if this feature is of any use, other than novelty. I configured some random users at the moment to test the stability of my homenode parser.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Chatterbox KARMA support
by choroba (Cardinal) on Apr 22, 2024 at 10:44 UTC | |
by cavac (Prior) on Apr 22, 2024 at 20:59 UTC | |
by LanX (Saint) on Apr 22, 2024 at 21:19 UTC | |
by cavac (Prior) on Apr 22, 2024 at 22:24 UTC | |
by LanX (Saint) on Apr 22, 2024 at 10:58 UTC | |
by jdporter (Paladin) on Apr 22, 2024 at 13:21 UTC | |
Re: Chatterbox KARMA support
by LanX (Saint) on Apr 23, 2024 at 10:25 UTC | |
by cavac (Prior) on Apr 23, 2024 at 11:04 UTC | |
by LanX (Saint) on Apr 23, 2024 at 11:20 UTC |