bot

package
v0.0.0-...-905e761 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDiscordError

func IsDiscordError(err error, code int) bool

Types

type DiscordBot

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

func New

func New(db *ent.Client, token string, youTubeConfig *oauth2.Config) (*DiscordBot, error)

func (*DiscordBot) ClearCommands

func (b *DiscordBot) ClearCommands(global, earlyAccess bool) error

func (*DiscordBot) Close

func (b *DiscordBot) Close() error

func (*DiscordBot) PushCommands

func (b *DiscordBot) PushCommands(global, earlyAccess bool) error

func (*DiscordBot) Start

func (b *DiscordBot) Start(prod bool) (err error)

func (*DiscordBot) StartPSApplier

func (b *DiscordBot) StartPSApplier(parentCtx context.Context, sub *pubsub.Subscription)

Directories

Path Synopsis
Package templates contains Discord bot message templates that are somewhere near complicated.
Package templates contains Discord bot message templates that are somewhere near complicated.

Jump to

Keyboard shortcuts

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