KudoSystem 初步设想

基本思想

  • 提供简单的 activity/kudo/blame 评价功能, 促进技术交互
  • 尽量防止 flood/自动 刷, 或者提高这种行为的代价.

设计

记录

activity
unique(str nick, str channel), int times
kudo
unique(str nick, str channel, type in ['kudo','blame'], str granter), int times
kudolog
str, nick, type in ['kudo','blame'], granter, time

分数

活跃分数 activity_score
activity.times * 5
收入分数 granted_score
kudo.times * 10 + blame.times * (-5)
授出分数 grant_score
kudo.times * 5 + blame.times * 2
综合分数 score
activity_score + granted_score - grant_score

命令

kudo
kudos?|thanks|thank you|bless|kiss(es)?|hugs?
blame
bs|blames?
action
#{blame}|#{kudo}
nick
[^,\s]+
CMD
#{nick},?\s+#{action}|#{action},?\s+#{nick}

规则

  1. 1 小时内每个人只能 kudo/blame 另一个人一次
  2. 1 小时内每个人只能被另一个人 kudo/blame 一次
  3. 在线活跃的人, 每小时加一次