mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Add Id to cr export
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -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: 
 | 
			
		||||
#     - <List
 | 
			
		||||
#     -  of
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user