diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-08-22 10:13:38 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-08-22 10:13:38 -0400 |
| commit | 64639e64a2c5a6ef3e0aeba8671343759473e4c7 (patch) | |
| tree | 02e81e5b1895486c03dfa3cf9fdb8bf33c9ebb1c /cmd/mimi/modules | |
| parent | 08bc92d9889457509928c1972a6c83acda257233 (diff) | |
| download | x-64639e64a2c5a6ef3e0aeba8671343759473e4c7.tar.xz x-64639e64a2c5a6ef3e0aeba8671343759473e4c7.zip | |
cmd/mimi: make the typing indicator work better
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/mimi/modules')
| -rw-r--r-- | cmd/mimi/modules/discord/jufra/jufra.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/mimi/modules/discord/jufra/jufra.go b/cmd/mimi/modules/discord/jufra/jufra.go index 2a69fc7..c216b8c 100644 --- a/cmd/mimi/modules/discord/jufra/jufra.go +++ b/cmd/mimi/modules/discord/jufra/jufra.go @@ -200,6 +200,8 @@ func (m *Module) messageCreate(s *discordgo.Session, mc *discordgo.MessageCreate t := time.NewTicker(5 * time.Second) defer t.Stop() + s.ChannelTyping(mc.ChannelID) + for { select { case <-t.C: |
