Don't run OpenAI stuff in DMs

This commit is contained in:
2024-04-07 06:00:03 +02:00
parent 8dd7d4fb6d
commit be4bcc4eae

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",