Set Transaction Status to OK by default

This commit is contained in:
Daan Boerlage 2021-09-17 14:33:55 +02:00
parent a1f8d033c2
commit d16828077d
Signed by: daan
GPG key ID: FCE070E1E4956606
3 changed files with 1 additions and 3 deletions

View file

@ -76,8 +76,6 @@ namespace Geekbot.Bot.Commands.Games.Roll
{ {
await ReplyAsync(string.Format(Localization.Roll.RolledNoGuess, Context.Message.Author.Mention, number)); await ReplyAsync(string.Format(Localization.Roll.RolledNoGuess, Context.Message.Author.Mention, number));
} }
Transaction.Status = SpanStatus.Ok;
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -65,7 +65,6 @@ namespace Geekbot.Bot.Commands.Utils.Quote
var embed = QuoteBuilder(quote.FirstOrDefault()); var embed = QuoteBuilder(quote.FirstOrDefault());
await ReplyAsync("", false, embed.Build()); await ReplyAsync("", false, embed.Build());
replySpan.Finish(); replySpan.Finish();
Transaction.Status = SpanStatus.Ok;
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -26,6 +26,7 @@ namespace Geekbot.Core
Id = Context.User.Id.ToString(), Id = Context.User.Id.ToString(),
Username = Context.User.Username, Username = Context.User.Username,
}; };
Transaction.Status = SpanStatus.Ok;
} }
protected override void AfterExecute(CommandInfo command) protected override void AfterExecute(CommandInfo command)