mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Big update introducing ghetto command interface, settings, database and howl.gg bet feed scraping
This commit is contained in:
19
KfChatDotNetKickBot/Models/DbModels/SettingDbModel.cs
Normal file
19
KfChatDotNetKickBot/Models/DbModels/SettingDbModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace KfChatDotNetKickBot.Models.DbModels;
|
||||
|
||||
public class SettingDbModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public required string Key { get; set; }
|
||||
public string? Value { get; set; }
|
||||
// For validation
|
||||
public required string Regex { get; set; } = @"\S+";
|
||||
// Friendly descriptor for the setting, e.g. "BossmanJack's howl.gg ID"
|
||||
public required string Description { get; set; }
|
||||
// Default to use when constructing the setting and nothing is supplied
|
||||
public string? Default { get; set; } = null;
|
||||
// Prevents the value from being revealed to Sneedchat when queried by an admin
|
||||
public bool IsSecret { get; set; } = false;
|
||||
}
|
||||
Reference in New Issue
Block a user