Documentation ¶
Index ¶
- func BetCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func ClearQueue(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- func Disconnect(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- func GetQueue(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- func PauseSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- func PingCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func PlayCommand(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance, ...)
- func ResumeSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- func SendComplexMessage(s *discordgo.Session, i *discordgo.InteractionCreate, title string, ...)
- func SendSimpleMessage(s *discordgo.Session, i *discordgo.InteractionCreate, message string, ...)
- func SendSimpleMessageResponse(s *discordgo.Session, i *discordgo.InteractionCreate, message string, ...)
- func SkipSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
- type ServerInstance
- type Song
- type VoiceInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetCommand ¶
func BetCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
func ClearQueue ¶
func ClearQueue(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
func Disconnect ¶
func Disconnect(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
func GetQueue ¶
func GetQueue(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
func PauseSong ¶
func PauseSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
func PingCommand ¶
func PingCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
func PlayCommand ¶
func PlayCommand(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance, configs *models.Config)
func ResumeSong ¶
func ResumeSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
func SendComplexMessage ¶
func SendSimpleMessage ¶
func SkipSong ¶
func SkipSong(s *discordgo.Session, i *discordgo.InteractionCreate, instance *ServerInstance)
Types ¶
type ServerInstance ¶
type ServerInstance struct { ServerId string Voice *VoiceInstance }
func CreateServerInstance ¶
func CreateServerInstance(id string) (i *ServerInstance)
type VoiceInstance ¶
type VoiceInstance struct { ChannelId string Connection *discordgo.VoiceConnection Encoder *dca.EncodeSession Stream *dca.StreamingSession IsPlaying bool Queue chan Song QueueList []Song //Copy of the channel, needed to show queue to the user Timer *time.Timer }
func CreateVoiceInstance ¶
func CreateVoiceInstance() (i *VoiceInstance)
func (*VoiceInstance) PlaySingleSong ¶
func (v *VoiceInstance) PlaySingleSong(videoInfo *youtube.Video)
func (*VoiceInstance) StartTimer ¶
func (v *VoiceInstance) StartTimer(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*VoiceInstance) StopTimer ¶
func (v *VoiceInstance) StopTimer()
Click to show internal directories.
Click to hide internal directories.