Don't run OpenAI stuff in DMs

This commit is contained in:
Joakim Hellsén 2024-04-07 06:00:03 +02:00
commit be4bcc4eae
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9

View file

@ -174,6 +174,11 @@ func onMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
return
}
// Don't allow DMs
if m.GuildID == "" {
return
}
allowedUsers := []string{
"thelovinator",
"killyoy",