Don't run OpenAI stuff in DMs
This commit is contained in:
5
main.go
5
main.go
@ -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",
|
||||
|
Reference in New Issue
Block a user