bot

package
v0.0.0-...-3cc618a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Callback = make(chan WebhookRequest)

Functions

This section is empty.

Types

type Bot

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

func New

func New() *Bot

func (*Bot) Shutdown

func (b *Bot) Shutdown() error

type Command

type Command func(b *Bot, m *discordgo.Message) error

type WebhookRequest

type WebhookRequest struct {
	BroadcasterID       string
	BroadcasterUserName string
	ModeratorUserName   string
	ModeratorID         string
	UserName            string
	Reason              string
	Action              string
	Expires             *time.Time
	CreatedAt           time.Time
}

Jump to

Keyboard shortcuts

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