bot

package
v0.0.0-...-c734098 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated. DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var (
	PkgCache    = map[string]*TempDoc{}
	StdlibCache = map[string]*docs.Doc{}/* 729 elements not displayed */

)
View Source
var DocsHelpEmbed = &discordgo.MessageEmbed{
	Title: "Docs help",
}

DocsHelpEmbed is the help for the docs command.

Functions

func CheckListeners

func CheckListeners(GcCycle time.Duration)

CheckListeners checks all active reaction listeners and kills inactive ones

func CleanTempDocs

func CleanTempDocs(GcCycle time.Duration)

func HandleDoc

func HandleDoc(s *discordgo.Session, content string, channelID string) *discordgo.MessageEmbed

HandleDoc is the handler for the doc command.

func HandleDocSend

func HandleDocSend(s *discordgo.Session, m *discordgo.MessageCreate, prefix string)

func HandleDocUpdate

func HandleDocUpdate(s *discordgo.Session, m *discordgo.MessageUpdate)

func HandleFuncsPages

func HandleFuncsPages(s *discordgo.Session, m *discordgo.MessageCreate, prefix string)

HandleFuncsPages is the handler fo the getfuncs command

func HandleTypesPages

func HandleTypesPages(s *discordgo.Session, m *discordgo.MessageCreate, prefix string)

HandleTypesPages is the handler fo the gettypes command

func PagesShortResponse

func PagesShortResponse(state, prefix string) *discordgo.MessageEmbed

PagesShortResponse is the error response for the commands to show pages of types or funcs

func ReactionListen

func ReactionListen(session *discordgo.Session, reaction *discordgo.MessageReactionAdd)

ReactionListen listens for the reactions for a previously sent embed.

Types

type EditListener

type EditListener struct {
	MessageID  string
	LastEdited time.Time
}

type ReactionListener

type ReactionListener struct {
	Type        string
	CurrentPage int
	PageLimit   int
	UserID      string
	Data        *docs.Doc
	LastUsed    time.Time
}

ReactionListener is a struct for the reaction listener for pages

type TempDoc

type TempDoc struct {
	*docs.Doc
	Created time.Time
}

Jump to

Keyboard shortcuts

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