custom_bots

package
v0.0.0-...-ac31e73 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomBot

type CustomBot struct {
	Presence CustomBotPresence `json:"status"`
	Session  *discordgo.Session
}

func NewCustomBot

func NewCustomBot(token string, presence CustomBotPresence) (*CustomBot, error)

func (*CustomBot) UpdatePresence

func (b *CustomBot) UpdatePresence(p CustomBotPresence)

type CustomBotManager

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

func NewCustomBotManager

func NewCustomBotManager(pg *postgres.PostgresStore, actionHandler *handler.ActionHandler) *CustomBotManager

type CustomBotPresence

type CustomBotPresence struct {
	Status        string      `json:"status"`
	ActivityType  null.Int    `json:"activity_type"`
	ActivityName  null.String `json:"activity_name"`
	ActivityState null.String `json:"activity_state"`
	ActivityURL   null.String `json:"activity_url"`
}

func (CustomBotPresence) Activity

func (p CustomBotPresence) Activity() discordgo.Activity

Jump to

Keyboard shortcuts

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