13 lines
234 B
Go
13 lines
234 B
Go
package bot
|
|
|
|
import (
|
|
"github.com/bwmarrin/discordgo"
|
|
)
|
|
|
|
func (b *Bot) PingCommand() CommandFunc {
|
|
return func(args []string, m *discordgo.MessageCreate) error {
|
|
b.Session.ChannelMessageSend(m.ChannelID, "pong")
|
|
return nil
|
|
}
|
|
}
|