kleincordBot/routers/messageRouter.go

22 lines
367 B
Go
Raw Permalink Normal View History

2024-05-03 21:25:42 +02:00
package routers
import (
"github.com/bwmarrin/discordgo"
"kleincordBot/handlers"
)
func MessageRouter(s *discordgo.Session, m *discordgo.MessageCreate) {
if m.Author.ID == s.State.User.ID {
return
}
switch m.Content {
case "test":
handlers.MessageTest(s, m)
case "!test":
handlers.MessageTest2(s, m)
2024-05-19 00:47:00 +02:00
case "spam pls":
handlers.LoremIpsum(s, m)
2024-05-03 21:25:42 +02:00
}
}