From fd4be76599e112ecd577e777015118afd7f43e63 Mon Sep 17 00:00:00 2001 From: tommy aka doge <59783653+dowoge@users.noreply.github.com> Date: Sat, 10 Sep 2022 22:00:36 -0400 Subject: [PATCH] fix method call and concat arguments --- src/modules/commands/pb.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/commands/pb.lua b/src/modules/commands/pb.lua index 4e8cd19..91fc292 100644 --- a/src/modules/commands/pb.lua +++ b/src/modules/commands/pb.lua @@ -16,7 +16,7 @@ commands:Add('pb', {}, 'get placement on map', function(t) local sn_info = API:GetUser(user.id) local game = API.GAMES[args[2]] local style = API.STYLES[args[3]] - local map = API.MAPS[game][args[4]] + local map = API.MAPS[game][table.concat(args,' ',4)] -- i love checks if not game then return message:reply('invalid game') end @@ -40,7 +40,7 @@ commands:Add('pb', {}, 'get placement on map', function(t) local time_formatted = API.FormatTime(time.Time) local date = os.date("%x", time.Date) local placement = rank .. '/' .. count - local points = API:CalculatePoint(rank, count) + local points = API.CalculatePoint(rank, count) local t_n, d_n, p_n= #time_formatted, 8, math.max(#placement, 10)