celexacreams

package module
v0.0.0-...-fb9d83c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCommand

func ExtractCommand(s string) ([]string, error)

func GetGIF

func GetGIF(search string) (string, error)

Types

type CelexaError

type CelexaError struct {
	Message string
}

func (*CelexaError) Error

func (e *CelexaError) Error() string

type CommandNotFoundError

type CommandNotFoundError struct {
	Message string
}

func (*CommandNotFoundError) Error

func (e *CommandNotFoundError) Error() string

type GIFData

type GIFData struct {
	URL string `json:url`
}

type GiphySearchResponse

type GiphySearchResponse struct {
	Data []GIFData `json:data`
}

type Handler

type Handler interface {
	Handle(*discordgo.MessageCreate) (string, error)
}

Handler handles CelexaCreams commands

type InvalidCommandFormatError

type InvalidCommandFormatError struct {
	Message string
}

func (*InvalidCommandFormatError) Error

func (e *InvalidCommandFormatError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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