Allow filtering by guild

This commit is contained in:
2022-05-12 22:17:04 -04:00
parent 6d42e0fa54
commit 0c3f4ce74a

View File

@ -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')