Allow filtering by guild
This commit is contained in:
@ -38,6 +38,11 @@ func main() {
|
||||
}
|
||||
|
||||
func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
if guild != "" {
|
||||
if m.GuildID != guild {
|
||||
return
|
||||
}
|
||||
}
|
||||
jsonMsg, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
jsonMsg = append(jsonMsg, '0')
|
||||
|
||||
Reference in New Issue
Block a user