- Add storing bot response messages in postgres

- Add scheduled task to clean up said store
This commit is contained in:
dev-kittens
2020-10-18 00:18:52 -05:00
parent 9282d5e9fb
commit 05cc30279a
6 changed files with 52 additions and 7 deletions

View File

@@ -189,9 +189,9 @@ namespace PluralKit.Bot
if (ctx.Match("random", "r"))
return ctx.Execute<Member>(MemberRandom, m => m.MemberRandom(ctx));
ctx.Reply(
// remove compiler warning
return ctx.Reply(
$"{Emojis.Error} Unknown command {ctx.PeekArgument().AsCode()}. For a list of possible commands, see <https://pluralkit.me/commands>.");
return Task.CompletedTask;
}
private async Task HandleSystemCommand(Context ctx)