Documentation ¶
Index ¶
Constants ¶
View Source
const GreetingCommandType command.Type = "command.greeting"
View Source
const RecordingCommandType command.Type = "command.recording"
View Source
const StatsCommandType command.Type = "command.stats"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMetadataOnAudioSent ¶
type AddMetadataOnAudioSent struct {
// contains filtered or unexported fields
}
func NewAddMetadataOnAudioSent ¶
func NewAddMetadataOnAudioSent(discord discord.Client, localizer *localizations.Localizer, fsRepo domain.FileRepository, voiceDataRepo domain.VoiceDataRepository, decoder domain.MP3Decoder, bus event.Bus) *AddMetadataOnAudioSent
type GreetingCommand ¶
type GreetingCommand struct {
InteractionToken string
}
func NewGreetingCommand ¶
func NewGreetingCommand(interactionToken string) GreetingCommand
func (GreetingCommand) Type ¶
func (c GreetingCommand) Type() command.Type
type GreetingCommandHandler ¶
type GreetingCommandHandler struct {
// contains filtered or unexported fields
}
func NewGreetingCommandHandler ¶
func NewGreetingCommandHandler(service *GreetingMessageCreator) GreetingCommandHandler
NewGreetingCommandHandler initializes a new GreetingCommandHandler.
type GreetingMessageCreator ¶
type GreetingMessageCreator struct {
// contains filtered or unexported fields
}
func NewGreetingMessageCreator ¶
func NewGreetingMessageCreator(discord discord.Client, localization *localizations.Localizer, channelName string) *GreetingMessageCreator
type RecordingCommand ¶
type RecordingCommand struct { UserID string CurrentChannelID string GuildID string Username string AvatarURL string }
func NewRecordingCommand ¶
func (RecordingCommand) Type ¶
func (c RecordingCommand) Type() command.Type
type RecordingCommandHandler ¶
type RecordingCommandHandler struct {
// contains filtered or unexported fields
}
func NewRecordingCommandHandler ¶
func NewRecordingCommandHandler(service *VoiceRecorder) RecordingCommandHandler
NewRecordingCommandHandler initializes a new RecordingCommandHandler.
type RemoveFilesWhenNotNeeded ¶
type RemoveFilesWhenNotNeeded struct {
// contains filtered or unexported fields
}
func NewRemoveFilesWhenNotNeeded ¶
func NewRemoveFilesWhenNotNeeded(fsRepo domain.FileRepository) *RemoveFilesWhenNotNeeded
type StatsCommand ¶
func NewStatsCommand ¶
func NewStatsCommand(interactionToken string, guildID string) StatsCommand
func (StatsCommand) Type ¶
func (c StatsCommand) Type() command.Type
type StatsCommandHandler ¶
type StatsCommandHandler struct {
// contains filtered or unexported fields
}
func NewStatsCommandHandler ¶
func NewStatsCommandHandler(service *StatsMessageCreator) StatsCommandHandler
NewStatsCommandHandler initializes a new StatsCommandHandler.
type StatsMessageCreator ¶
type StatsMessageCreator struct {
// contains filtered or unexported fields
}
func NewStatsMessageCreator ¶
func NewStatsMessageCreator(discord discord.Client, localization *localizations.Localizer, voiceDataRepo domain.VoiceDataRepository) *StatsMessageCreator
type VoiceRecorder ¶
type VoiceRecorder struct {
// contains filtered or unexported fields
}
func NewVoiceRecorder ¶
func NewVoiceRecorder(discord discord.Client, configChannelName string, lockedUserRepository domain.LockedUserRepository, eventBus event.Bus, fsRepo domain.FileRepository, writer ogg.Writer) *VoiceRecorder
Click to show internal directories.
Click to hide internal directories.