bot

package
v0.0.0-...-928f78f Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasUser

func HasUser(users []*discordgo.User, target *discordgo.User) bool

func MessageCreate

func MessageCreate(session *discordgo.Session, msg *discordgo.MessageCreate)

func Start

func Start(options *BotOptions)

Types

type BotOptions

type BotOptions struct {
	MarkovPath   string
	Token        string
	MarkovOrder  int
	DefaultDelay time.Duration
	Prefix       string
}

type ChannelComm

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

func NewChannelData

func NewChannelData(defaultValue interface{}) *ChannelComm

func (*ChannelComm) Close

func (comm *ChannelComm) Close()

func (*ChannelComm) Get

func (comm *ChannelComm) Get(channelID string) interface{}

func (*ChannelComm) GetWillSet

func (comm *ChannelComm) GetWillSet(channelID string) interface{}

func (*ChannelComm) Set

func (comm *ChannelComm) Set(channelID string, data interface{})

Jump to

Keyboard shortcuts

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