From 0e41cb7cc201bb25db7ced9f7586479ea8da870b Mon Sep 17 00:00:00 2001 From: Toastie <toastie@toastiet0ast.com> Date: Sat, 5 Apr 2025 20:13:30 +1300 Subject: [PATCH] fixed .timely awarding multiple times on selfhosts --- src/EllieBot/Modules/Gambling/Gambling.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EllieBot/Modules/Gambling/Gambling.cs b/src/EllieBot/Modules/Gambling/Gambling.cs index e809b71..8e4aef9 100644 --- a/src/EllieBot/Modules/Gambling/Gambling.cs +++ b/src/EllieBot/Modules/Gambling/Gambling.cs @@ -215,8 +215,7 @@ public partial class Gambling : GamblingModule<GamblingService> await Response().Error(strs.timely_none).SendAsync(); return; } - - await _cs.AddAsync(ctx.User.Id, val, new("timely", "claim")); + if (Config.Timely.ProtType == TimelyProt.Button) { var interaction = CreateTimelyInteraction();