Minor refactor

This commit is contained in:
Sebastian Cabrera 2024-01-16 16:58:02 -05:00
parent ba31086469
commit 3ad90eddbf
2 changed files with 6 additions and 5 deletions

View file

@ -13,6 +13,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
if m.Author.ID == s.State.User.ID {
return
}
// If the message is "ping" reply with "Pong!"
if m.Content == "ping" {
s.ChannelMessageSend(m.ChannelID, "Pong!")