Fix unknown persona detection, bump to v0.1.16

This commit is contained in:
2026-06-16 21:46:07 +02:00
parent 012826d93b
commit 7f3caee8ec
4 changed files with 9 additions and 9 deletions
+4
View File
@@ -200,6 +200,10 @@ func (p *Plugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) {
if persona == "" {
persona = resolvePersona(cfg.Persona)
}
// If still empty and the config has a value, use it as-is (legacy fallback).
if persona == "" && cfg.Persona != "" {
persona = cfg.Persona
}
systemPrompt := ""
if persona != "" {
systemPrompt = "You are " + persona + ". Respond in character. Only respond to the latest message — do not re-address earlier messages. Vary your openings and phrasing each time."