cmd

package
v0.0.0-...-168ccef Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DanbooruUsername string
	DanbooruToken    string
)
View Source
var SauceNaoToken string
View Source
var StartTime time.Time
View Source
var TraceMoeBase string

Functions

func Anime

func Anime(ctx *exrouter.Context)

Anime command

func Baka

func Baka(ctx *exrouter.Context)

Baka command

func CatGirl

func CatGirl(ctx *exrouter.Context)

Cat girl command

func ClearCommand

func ClearCommand(ctx *exrouter.Context)

func Cloc

func Cloc(ctx *exrouter.Context)

Cloc command

func Cuddle

func Cuddle(ctx *exrouter.Context)

Cuddle command

func EightBall

func EightBall(ctx *exrouter.Context)

EightBall command.

func Feed

func Feed(ctx *exrouter.Context)

Feed command

func GenerateGifUploadMessage

func GenerateGifUploadMessage(user *discordgo.User, count, total, dupCount, nsfwCount int) string

func Gif

func Gif(ctx *exrouter.Context)

Gif command

func HeadPat

func HeadPat(ctx *exrouter.Context)

HeadPat command

func Hug

func Hug(ctx *exrouter.Context)

Hug command

func Identify

func Identify(ctx *exrouter.Context)

Identify command

func Info

func Info(ctx *exrouter.Context)

Info command

func Kaomoji

func Kaomoji(ctx *exrouter.Context)

Kaomoji command

func Kiss

func Kiss(ctx *exrouter.Context)

Kiss command

func Leaderboard

func Leaderboard(ctx *exrouter.Context)

Leaderboard command

func Manga

func Manga(ctx *exrouter.Context)

Manga command

func MusicQuiz

func MusicQuiz(ctx *exrouter.Context)

MusicQuiz command

func NowPlayingCommand

func NowPlayingCommand(ctx *exrouter.Context)

func Owofy

func Owofy(ctx *exrouter.Context)

Owofy command. Ported from kyostra/owofy

func PauseCommand

func PauseCommand(ctx *exrouter.Context)

func Pfp

func Pfp(ctx *exrouter.Context)

Pfp command

func PlayCommand

func PlayCommand(ctx *exrouter.Context)

func Prefix

func Prefix(ctx *exrouter.Context)

Prefix command

func QueueCommand

func QueueCommand(ctx *exrouter.Context)

func ResumeCommand

func ResumeCommand(ctx *exrouter.Context)

func Sauce

func Sauce(ctx *exrouter.Context)

Sauce command

func SkipCommand

func SkipCommand(ctx *exrouter.Context)

func Slap

func Slap(ctx *exrouter.Context)

Slap command

func Smug

func Smug(ctx *exrouter.Context)

Smug command

func StopCommand

func StopCommand(ctx *exrouter.Context)

func Tickle

func Tickle(ctx *exrouter.Context)

Tickle command

func Trivia

func Trivia(ctx *exrouter.Context)

Trivia command

func UploadGifs

func UploadGifs(content string, message *discordgo.Message) (int, int, int, int)

func Waifu

func Waifu(ctx *exrouter.Context)

Waifu command

func YoutubeCommand

func YoutubeCommand(ctx *exrouter.Context)

Types

type ClarifaiPredict

type ClarifaiPredict struct {
	Status struct {
		Code int `json:"code"`
	} `json:"status"`
	Outputs []struct {
		Data struct {
			Frames []struct {
				Data struct {
					Concepts []struct {
						Name  string  `json:"name"`
						Value float64 `json:"value"`
					} `json:"concepts"`
				} `json:"data"`
			} `json:"frames"`
		} `json:"data"`
	} `json:"outputs"`
}

type ClocResponse

type ClocResponse []struct {
	Language    string `json:"language"`
	Files       string `json:"files"`
	Lines       string `json:"lines"`
	Blanks      string `json:"blanks"`
	Comments    string `json:"comments"`
	LinesOfCode string `json:"linesOfCode"`
}

type DanbooruResponse

type DanbooruResponse []struct {
	LargeFileURL string `json:"large_file_url"`
}

type NekoLifeResponse

type NekoLifeResponse struct {
	URL string `json:"url"`
}

type OpeningEntry

type OpeningEntry struct {
	Name  string
	Embed *discordgo.MessageEmbed
}

type Openings

type Openings []struct {
	Name  string `json:"name"`
	Songs []struct {
		Songname string `json:"songname"`
		URL      string `json:"url"`
	} `json:"songs"`
}
var (
	OpeningsData Openings
	OpeningsMap  = sync.Map{}
)

func GetOpenings

func GetOpenings() Openings

Return openings

type TraceData

type TraceData struct {
	Docs []struct {
		AnilistID  int         `json:"anilist_id"`
		At         float64     `json:"at"`
		Filename   string      `json:"filename"`
		Episode    interface{} `json:"episode,string"`
		Tokenthumb string      `json:"tokenthumb"`
		Similarity float64     `json:"similarity"`
		MalID      int         `json:"mal_id"`
	} `json:"docs"`
}

type TriviaResponse

type TriviaResponse struct {
	ResponseCode int `json:"response_code"`
	Results      []struct {
		Category         string   `json:"category"`
		Type             string   `json:"type"`
		Difficulty       string   `json:"difficulty"`
		Question         string   `json:"question"`
		CorrectAnswer    string   `json:"correct_answer"`
		IncorrectAnswers []string `json:"incorrect_answers"`
	} `json:"results"`
}

Jump to

Keyboard shortcuts

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