listener

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package listener defines chat listeners for the bot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discord

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

Discord listener.

func NewDiscord

func NewDiscord() *Discord

NewDiscord returns an empty listener for Discord. Use Connect to connect the listener.

func (*Discord) Connect

func (d *Discord) Connect(token string, actions []actions.Handler) error

Connect to the Discord server using the given token. The provided actions will be used to handle messages.

Jump to

Keyboard shortcuts

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