Minor refactor
This commit is contained in:
parent
ba31086469
commit
3ad90eddbf
2 changed files with 6 additions and 5 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue