handler

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DeleteMessagesTicker

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

Types

type AskHandler

type AskHandler struct{}

AskHandler struct for Ask command

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 GeminiResponse added in v1.3.0

type GeminiResponse struct {
	Candidates []struct {
		Content struct {
			Parts []struct {
				Text string `json:"text"`
			} `json:"parts"`
		} `json:"content"`
		FinishReason string `json:"finishReason"`
	} `json:"candidates"`
}

GeminiResponse represents the structure of the Gemini API response

type LiveHandler

type LiveHandler struct{}

func (*LiveHandler) Command

func (*LiveHandler) Handler

type PriceHandler

type PriceHandler struct{}

func (*PriceHandler) Command

func (*PriceHandler) Handler

type SetGeminiKeyHandler added in v1.3.0

type SetGeminiKeyHandler struct{}

SetGeminiKeyHandler handles the set-gemini-key command

func (*SetGeminiKeyHandler) Command added in v1.3.0

func (*SetGeminiKeyHandler) Handler added in v1.3.0

type TwitchChannelInfo added in v1.3.0

type TwitchChannelInfo struct {
	ID              string `json:"id"`
	Login           string `json:"login"`
	DisplayName     string `json:"display_name"`
	Type            string `json:"type"`
	BroadcasterType string `json:"broadcaster_type"`
	Description     string `json:"description"`
	ProfileImageURL string `json:"profile_image_url"`
	OfflineImageURL string `json:"offline_image_url"`
}

type TwitchStreamInfo added in v1.3.0

type TwitchStreamInfo struct {
	ID           string   `json:"id"`
	UserID       string   `json:"user_id"`
	UserName     string   `json:"user_name"`
	GameID       string   `json:"game_id"`
	GameName     string   `json:"game_name"`
	Type         string   `json:"type"`
	Title        string   `json:"title"`
	ViewerCount  int      `json:"viewer_count"`
	StartedAt    string   `json:"started_at"`
	Language     string   `json:"language"`
	ThumbnailURL string   `json:"thumbnail_url"`
	TagIDs       []string `json:"tag_ids"`
	Tags         []string `json:"tags"`
	IsMature     bool     `json:"is_mature"`
}

Jump to

Keyboard shortcuts

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