Don't run OpenAI stuff in DMs
This commit is contained in:
parent
8dd7d4fb6d
commit
be4bcc4eae
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -174,6 +174,11 @@ func onMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't allow DMs
|
||||||
|
if m.GuildID == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
allowedUsers := []string{
|
allowedUsers := []string{
|
||||||
"thelovinator",
|
"thelovinator",
|
||||||
"killyoy",
|
"killyoy",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue