summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-04 02:58:27 +0100
committerubq323 <ubq323@ubq323.website>2022-08-04 02:58:27 +0100
commit1a0ef93928bd16c98868c1c1a4492c05529fd54e (patch)
tree421ae4f1d0414c939cae3969c7f0ba635ca708ec
parent9c5222fbf4931f06ce6349ae43b06c9cd8f39207 (diff)
chat
-rw-r--r--chat.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/chat.lua b/chat.lua
index 2640ecc..a34086b 100644
--- a/chat.lua
+++ b/chat.lua
@@ -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,