typing

package
v0.0.0-...-2a859bb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

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

func NewSubscriber

func NewSubscriber(self message.Author) Subscriber

func (Subscriber) TriggerTyping

func (ts Subscriber) TriggerTyping(author message.Author)

func (Subscriber) Typing

func (ts Subscriber) Typing() error

Typing sleeps and returns possibly an error.

func (Subscriber) TypingNow

func (ts Subscriber) TypingNow()

TypingNow sends a typing event immediately.

func (Subscriber) TypingSubscribe

func (ts Subscriber) TypingSubscribe(ti cchat.TypingContainer) (func(), error)

func (Subscriber) TypingTimeout

func (ts Subscriber) TypingTimeout() time.Duration

TypingTimeout returns 5 seconds.

type Typer

type Typer struct {
	message.Author
	// contains filtered or unexported fields
}

func NewTyper

func NewTyper(a message.Author) *Typer

func RandomTyper

func RandomTyper() *Typer

func (*Typer) Time

func (t *Typer) Time() time.Time

Jump to

Keyboard shortcuts

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