Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandHandlers = []CommandHandler{ &DeleteHandler{}, &LiveHandler{}, &PriceHandler{}, &AskHandler{}, &SetGeminiKeyHandler{}, }
Functions ¶
Types ¶
type AskHandler ¶
type AskHandler struct{}
AskHandler struct for Ask command
func (*AskHandler) Command ¶
func (h *AskHandler) Command() *discordgo.ApplicationCommand
func (*AskHandler) Handler ¶
func (h *AskHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
type CommandHandler ¶
type CommandHandler interface { Command() *discordgo.ApplicationCommand Handler(s *discordgo.Session, i *discordgo.InteractionCreate) }
type DeleteHandler ¶
type DeleteHandler struct{}
func (*DeleteHandler) Command ¶
func (h *DeleteHandler) Command() *discordgo.ApplicationCommand
func (*DeleteHandler) Handler ¶
func (h *DeleteHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
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 (h *LiveHandler) Command() *discordgo.ApplicationCommand
func (*LiveHandler) Handler ¶
func (h *LiveHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
type PriceHandler ¶
type PriceHandler struct{}
func (*PriceHandler) Command ¶
func (h *PriceHandler) Command() *discordgo.ApplicationCommand
func (*PriceHandler) Handler ¶
func (h *PriceHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
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 (h *SetGeminiKeyHandler) Command() *discordgo.ApplicationCommand
func (*SetGeminiKeyHandler) Handler ¶ added in v1.3.0
func (h *SetGeminiKeyHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
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"` }
Click to show internal directories.
Click to hide internal directories.