application

package
v0.0.0-...-b6b6a87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 22 Imported by: 0

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

func (*AddMetadataOnAudioSent) Handle

func (handler *AddMetadataOnAudioSent) Handle(ctx context.Context, evt event.Event) error

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.

func (GreetingCommandHandler) Handle

Handle implements the command.Handler interface.

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 NewRecordingCommand(userID string, channelID string, guildID string, username string, avatarURL string) RecordingCommand

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.

func (RecordingCommandHandler) Handle

Handle implements the command.Handler interface.

type RemoveFilesWhenNotNeeded

type RemoveFilesWhenNotNeeded struct {
	// contains filtered or unexported fields
}

func NewRemoveFilesWhenNotNeeded

func NewRemoveFilesWhenNotNeeded(fsRepo domain.FileRepository) *RemoveFilesWhenNotNeeded

func (*RemoveFilesWhenNotNeeded) Handle

func (handler *RemoveFilesWhenNotNeeded) Handle(ctx context.Context, evt event.Event) error

type StatsCommand

type StatsCommand struct {
	InteractionToken string
	GuildID          string
}

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.

func (StatsCommandHandler) Handle

Handle implements the command.Handler interface.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL