mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
- Add storing bot response messages in postgres
- Add scheduled task to clean up said store
This commit is contained in:
parent
9282d5e9fb
commit
05cc30279a
6 changed files with 52 additions and 7 deletions
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Dapper;
|
||||
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
public partial class ModelRepository
|
||||
{
|
||||
public Task SaveCommandMessage(IPKConnection conn, ulong message_id, ulong author_id) =>
|
||||
conn.QueryAsync("insert into command_message (message_id, invoker_id) values (@Message, @Author)",
|
||||
new {Message = message_id, Author = author_id });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue