handler

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandHandlers = []CommandHandler{
	&DeleteHandler{},
	&LiveHandler{},
	&PriceHandler{},
	&AskHandler{},
}

Functions

func DeleteMessagesTicker

func DeleteMessagesTicker(s *discordgo.Session, channelID string, hours int)

Types

type AskHandler

type AskHandler struct{}

func (*AskHandler) Command

func (h *AskHandler) Command() *discordgo.ApplicationCommand

func (*AskHandler) Handler

type CommandHandler

type CommandHandler interface {
	Command() *discordgo.ApplicationCommand
	Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
}

type DeleteHandler

type DeleteHandler struct{}

func (*DeleteHandler) Command

func (*DeleteHandler) Handler

type Event

type Event struct {
	ID      string `json:"id"`
	Object  string `json:"object"`
	Created int    `json:"created"`
	Model   string `json:"model"`
	Choices []struct {
		Index int `json:"index"`
		Delta struct {
			Role    string `json:"role"`
			Content string `json:"content"`
		} `json:"delta"`
		FinishReason interface{} `json:"finish_reason"`
	} `json:"choices"`
}

type LiveHandler

type LiveHandler struct{}

func (*LiveHandler) Command

func (*LiveHandler) Handler

type PriceHandler

type PriceHandler struct{}

func (*PriceHandler) Command

func (*PriceHandler) Handler

Jump to

Keyboard shortcuts

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