diff options
-rw-r--r-- | chat.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -76,14 +76,15 @@ local function draw_lb(W,scores) end end + +-- scoring + local function score(msg) local s = 0 for num in msg:gmatch"%-?%d+" do s=s+num end return s end - - local userscores = setmetatable({ aaa=10, bbb=100, |