diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-07-27 13:32:34 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-07-27 13:32:34 -0400 |
| commit | ebe406ff9fd26e1c5140e123fe3a16e615114da2 (patch) | |
| tree | 1fa67b9d9db667c0dd6d54fa5c722053f220dad0 /cmd/mimi/modules/discord | |
| parent | 71450fb78db63fa509f0a115599f777518897200 (diff) | |
| download | x-ebe406ff9fd26e1c5140e123fe3a16e615114da2.tar.xz x-ebe406ff9fd26e1c5140e123fe3a16e615114da2.zip | |
ignore message feature
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/mimi/modules/discord')
| -rw-r--r-- | cmd/mimi/modules/discord/jufra/jufra.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mimi/modules/discord/jufra/jufra.go b/cmd/mimi/modules/discord/jufra/jufra.go index 05ec86d..e096bf7 100644 --- a/cmd/mimi/modules/discord/jufra/jufra.go +++ b/cmd/mimi/modules/discord/jufra/jufra.go @@ -125,6 +125,10 @@ func (m *Module) messageCreate(s *discordgo.Session, mc *discordgo.MessageCreate return } + if strings.HasPrefix(mc.Content, "!") { + return + } + m.lock.Lock() defer m.lock.Unlock() |
