2016-10-08 02:25:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Services.Database.Models
|
|
|
|
|
{
|
|
|
|
|
public class CustomReaction : DbEntity
|
|
|
|
|
{
|
|
|
|
|
public ulong? GuildId { get; set; }
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public Regex Regex { get; set; }
|
|
|
|
|
public string Response { get; set; }
|
|
|
|
|
public string Trigger { get; set; }
|
|
|
|
|
public bool IsRegex { get; set; }
|
2016-10-09 01:22:54 +00:00
|
|
|
|
public override string ToString() => $"`#{Id}` `Trigger:` {Trigger}\n `Response:` {Response}";
|
2016-10-08 02:25:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ReactionResponse : DbEntity
|
|
|
|
|
{
|
|
|
|
|
public bool OwnerOnly { get; set; }
|
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|