add when picoclaw responsed to discord message will show its typing (#236)

This commit is contained in:
Luke Milby
2026-02-15 12:37:32 -05:00
committed by GitHub
parent 214b201bfa
commit 811e4f8728

View File

@@ -140,6 +140,12 @@ func (c *DiscordChannel) handleMessage(s *discordgo.Session, m *discordgo.Messag
return
}
if err := c.session.ChannelTyping(m.ChannelID); err != nil {
logger.ErrorCF("discord", "Failed to send typing indicator", map[string]any{
"error": err.Error(),
})
}
// 检查白名单,避免为被拒绝的用户下载附件和转录
if !c.IsAllowed(m.Author.ID) {
logger.DebugCF("discord", "Message rejected by allowlist", map[string]any{