Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LegoYodaMp3Path = "files/legoYoda.mp3"
)
Functions ¶
This section is empty.
Types ¶
type DiscordCommand ¶
type DiscordCommand struct {
// contains filtered or unexported fields
}
func NewDiscordCommand ¶
func NewDiscordCommand(log *zap.Logger) *DiscordCommand
func (*DiscordCommand) AddGeneralHandler ¶
func (d *DiscordCommand) AddGeneralHandler(s *discordgo.Session)
func (*DiscordCommand) CommandList ¶
func (d *DiscordCommand) CommandList() []*discordgo.ApplicationCommand
func (*DiscordCommand) Log ¶
func (d *DiscordCommand) Log() *zap.Logger
type VoiceManager ¶
type VoiceManager struct {
// contains filtered or unexported fields
}
func NewVoiceManager ¶
func NewVoiceManager(log *zap.Logger) *VoiceManager
func (*VoiceManager) ConvertMp3ToBuffer ¶
func (vm *VoiceManager) ConvertMp3ToBuffer(filePath string, buffer *[][]byte) error
ConvertMp3ToBuffer plays the current buffer to the provided channel.
func (*VoiceManager) Log ¶
func (vm *VoiceManager) Log() *zap.Logger
Click to show internal directories.
Click to hide internal directories.