mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-02 15:54: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
|
namespace NadekoBot.Modules.CustomReactions
|
||||||
{
|
{
|
||||||
public class ExportedExpr
|
public class ExportedExpr
|
||||||
{
|
{
|
||||||
public string Res { get; set; }
|
public string Res { get; set; }
|
||||||
|
public string Id { get; set; }
|
||||||
public bool Ad { get; set; }
|
public bool Ad { get; set; }
|
||||||
public bool Dm { get; set; }
|
public bool Dm { get; set; }
|
||||||
public bool At { get; set; }
|
public bool At { get; set; }
|
||||||
@@ -15,6 +17,7 @@ namespace NadekoBot.Modules.CustomReactions
|
|||||||
=> new ExportedExpr()
|
=> new ExportedExpr()
|
||||||
{
|
{
|
||||||
Res = cr.Response,
|
Res = cr.Response,
|
||||||
|
Id = ((kwum)cr.Id).ToString(),
|
||||||
Ad = cr.AutoDeleteTrigger,
|
Ad = cr.AutoDeleteTrigger,
|
||||||
At = cr.AllowTarget,
|
At = cr.AllowTarget,
|
||||||
Ca = cr.ContainsAnywhere,
|
Ca = cr.ContainsAnywhere,
|
||||||
|
|||||||
@@ -677,6 +677,7 @@ namespace NadekoBot.Modules.CustomReactions.Services
|
|||||||
private const string _prependExport =
|
private const string _prependExport =
|
||||||
@"# Keys are triggers, Each key has a LIST of custom reactions in the following format:
|
@"# Keys are triggers, Each key has a LIST of custom reactions in the following format:
|
||||||
# - res: Response string
|
# - 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:
|
# react:
|
||||||
# - <List
|
# - <List
|
||||||
# - of
|
# - of
|
||||||
|
|||||||
Reference in New Issue
Block a user