1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-02 20:13:13 +00:00

Add Id to cr export

This commit is contained in:
Alan Beatty 2021-08-26 13:30:29 -05:00 committed by Kwoth
parent a95489be50
commit 11a9022415
2 changed files with 5 additions and 1 deletions

View file

@ -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,

View file

@ -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