15 lines
276 B
Go
15 lines
276 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/bwmarrin/discordgo"
|
|
)
|
|
|
|
func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
if m.Author.ID == s.State.User.ID && m.Author.Bot {
|
|
return
|
|
}
|
|
|
|
if m.Content == "!ping" {
|
|
s.ChannelMessageSend(m.ChannelID, "Pong!")
|
|
}
|
|
}
|