bot

package
v0.0.0-...-f3179c4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config *types.Config)

Start starts the app with the specified config and blocks until fatal error

Types

type App

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

App stores program state

func (*App) ConnectDiscord

func (app *App) ConnectDiscord() (err error)

ConnectDiscord sets up the Discord API and event listeners

type ChannelDM

type ChannelDM struct {
	ChannelID     string         `json:"id"`
	Private       bool           `json:"is_private"`
	Recipient     discordgo.User `json:"recipient"`
	LastMessageID string         `json:"last_message_id"`
}

ChannelDM is a direct message channel

type Extension

type Extension interface {
	Init(*types.Config, *discord.Session, storage.Storer, *forum.ForumClient) error
	OnMessage(discordgo.Message) error
}

Extension represents an extension to the bot that receives a pointer to the storage backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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