Files
dcbot/bot/handleSlashPing.go
Yi-Ting Shih cb11672817 Refactor: cleanup
- Introduce tracing
- Introduce cobra / viper framework
- Introduce resty client
- Seperate files in api/ and bot/
- Trim unused functions
2025-12-12 23:51:48 +08:00

16 lines
351 B
Go

package bot
import "github.com/bwmarrin/discordgo"
func (b *Bot) handleSlashPing(
s *discordgo.Session,
i *discordgo.InteractionCreate,
) {
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: "pong",
},
})
}