From 1a0ef93928bd16c98868c1c1a4492c05529fd54e Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 4 Aug 2022 02:58:27 +0100 Subject: chat --- chat.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chat.lua') 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, -- cgit v1.2.3