From 11a902241578276bd125deddb1a27541f6e17839 Mon Sep 17 00:00:00 2001 From: Alan Beatty Date: Thu, 26 Aug 2021 13:30:29 -0500 Subject: [PATCH] Add Id to cr export --- src/NadekoBot/Modules/CustomReactions/Common/ExportedExpr.cs | 5 ++++- .../CustomReactions/Services/CustomReactionsService.cs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/CustomReactions/Common/ExportedExpr.cs b/src/NadekoBot/Modules/CustomReactions/Common/ExportedExpr.cs index 75a4d2634..3c7dade79 100644 --- a/src/NadekoBot/Modules/CustomReactions/Common/ExportedExpr.cs +++ b/src/NadekoBot/Modules/CustomReactions/Common/ExportedExpr.cs @@ -1,10 +1,12 @@ -using NadekoBot.Services.Database.Models; +using NadekoBot.Services.Database.Models; +using NadekoBot.Common; namespace NadekoBot.Modules.CustomReactions { public class ExportedExpr { public string Res { get; set; } + public string Id { get; set; } public bool Ad { get; set; } public bool Dm { get; set; } public bool At { get; set; } @@ -15,6 +17,7 @@ namespace NadekoBot.Modules.CustomReactions => new ExportedExpr() { Res = cr.Response, + Id = ((kwum)cr.Id).ToString(), Ad = cr.AutoDeleteTrigger, At = cr.AllowTarget, Ca = cr.ContainsAnywhere, diff --git a/src/NadekoBot/Modules/CustomReactions/Services/CustomReactionsService.cs b/src/NadekoBot/Modules/CustomReactions/Services/CustomReactionsService.cs index 641872f01..5cfef396b 100644 --- a/src/NadekoBot/Modules/CustomReactions/Services/CustomReactionsService.cs +++ b/src/NadekoBot/Modules/CustomReactions/Services/CustomReactionsService.cs @@ -677,6 +677,7 @@ namespace NadekoBot.Modules.CustomReactions.Services private const string _prependExport = @"# Keys are triggers, Each key has a LIST of custom reactions in the following format: # - res: Response string +# id: Alphanumeric id used for commands related to the custom reaction. (Note, when using .crsimport, a new id will be generated.) # react: # -