diff options
author | ubq323 <ubq323@ubq323.website> | 2022-08-04 02:58:27 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-08-04 02:58:27 +0100 |
commit | 1a0ef93928bd16c98868c1c1a4492c05529fd54e (patch) | |
tree | 421ae4f1d0414c939cae3969c7f0ba635ca708ec | |
parent | 9c5222fbf4931f06ce6349ae43b06c9cd8f39207 (diff) |
chat
-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, |