forked from adam/discord-bot-shtik
starting on UAC description
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
This commit is contained in:
parent
2645d631a5
commit
8dd8b599bd
@ -43,6 +43,7 @@ public class Behaver
|
||||
|
||||
public async Task<bool> ActOn(Message message)
|
||||
{
|
||||
//TODO: this is yet another hit to the database, and a big one. cache them in memory! there needs to be a feasibly-viewable amount, anyway.
|
||||
var matchingUACs = Rememberer.MatchUACs(message);
|
||||
var behaviorsActedOn = new List<string>();
|
||||
foreach (var behavior in Behaviors.ToList())
|
||||
|
@ -20,4 +20,10 @@ public class UAC
|
||||
public List<Account> AccountInChannels { get; set; }
|
||||
public List<Channel> Channels { get; set; }
|
||||
public List<User> Users { get; set; }
|
||||
///<summary>"but past adam", you may ask. "if UACs are configured before runtime, why not write html into your source control, as part of the project,
|
||||
///with the benefit of an html editor?"
|
||||
///absolutely fair question. **But**: the plan is for external services, e.g., over kafka, to manage their own. So from Vassago's perspective,
|
||||
///it's variably before and after compile time. shrug.emote.
|
||||
///</summary>
|
||||
public string Description { get; set; }
|
||||
}
|
||||
|
@ -12,6 +12,10 @@
|
||||
<th scope="row">Display Name</th>
|
||||
<td>@Model.DisplayName</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Description</th>
|
||||
<td>@Html.Raw(Model.Description)
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Channels</th>
|
||||
<td>
|
||||
|
Loading…
Reference in New Issue
Block a user