From 555672e97f48cff45b1dff3241b67cc4e01a9b67 Mon Sep 17 00:00:00 2001 From: tommy aka doge <59783653+dowoge@users.noreply.github.com> Date: Sun, 11 Sep 2022 21:19:59 -0400 Subject: [PATCH] add map/time info on first line --- src/modules/commands/wrmap.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/commands/wrmap.lua b/src/modules/commands/wrmap.lua index b90c8d7..c2b8e7f 100644 --- a/src/modules/commands/wrmap.lua +++ b/src/modules/commands/wrmap.lua @@ -34,15 +34,17 @@ commands:Add('wr', {}, 'get map wr', function(t) -- Username: | Time: | Points: | Date: local n_n,t_n,d_n,p_n = 20,#time_formatted,8,#points - local first_line = pad('Username:', n_n + 1) .. '| ' + local first_line = 'WR Time for map: '..map.DisplayName..' ( 1/'..count..' ) ['..API.GAMES[game]..', '..API.STYLES_LIST[style]..']' + + local second_line = pad('Username:', n_n + 1) .. '| ' .. pad('Time:', t_n + 1) .. '| ' .. pad('Points:',p_n + 1).. '| ' .. 'Date:' - local second_line = pad(username, n_n + 1) .. '| ' + local third_line = pad(username, n_n + 1) .. '| ' .. pad(time_formatted, t_n + 1) .. '| ' .. pad(points, p_n + 1) .. '| ' .. date - return message:reply('```' .. first_line .. '\n' .. second_line .. '```') + return message:reply('```' .. first_line .. '\n' .. second_line .. '\n' .. third_line .. '```') end) \ No newline at end of file