polsvoice

package module
v0.0.0-...-3ed04f8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

README

polsvoice

A discord bot to record the voice chat.

Documentation

Index

Constants

View Source
const (
	File   = "file"
	Stdout = "stdout"
)

Variables

This section is empty.

Functions

func Run

func Run(botToken string, serverID string, channelID string, filePrefix string) error

Run is an entry point of the app.

Types

type FileWriterProvider

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

func (*FileWriterProvider) GetWriter

func (p *FileWriterProvider) GetWriter() (io.Writer, string, func(), error)

type MentionHandler

type MentionHandler struct {
	StartRecChan      chan interface{}
	DisconnectionChan chan interface{}
}

func (*MentionHandler) Handle

type OutType

type OutType string

type Recorder

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

func NewRecorder

func NewRecorder(filePrefix string) *Recorder

func (*Recorder) Record

func (r *Recorder) Record(vc *discordgo.VoiceConnection, finishChan chan interface{}) error

type WriterProvider

type WriterProvider interface {
	GetWriter() (io.Writer, string, func(), error)
}

Directories

Path Synopsis
cmd
polsvoice command

Jump to

Keyboard shortcuts

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