malist

package
v0.0.0-...-7e69f2d Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MALHelp = []string{
	"(mal | anilist) anime [name] -- lookup an anime on MAL. If it doesn't find it on there it tries Anilist instead.",
	"(mal | anilist) manga [name] -- lookup manga on MAL. If it doesn't find it on there it tries Anilist instead.",
}

Functions

This section is empty.

Types

type AnilistResult

type AnilistResult struct {
	ID               int      `json:"id"`
	TitleRomaji      string   `json:"title_romaji"`
	TitleJapanese    string   `json:"title_japanese"`
	ImageURLLarge    string   `json:"image_url_lge"`
	SeriesType       string   `json:"series_type"`
	AiringStatus     string   `json:"airing_status"`
	PublishingStatus string   `json:"publishing_status"`
	TotalEpisodes    int      `json:"total_episodes"`
	TotalVolumes     int      `json:"total_volumes"`
	TotalChapters    int      `json:"total_chapters"`
	AverageScore     int      `json:"average_score"`
	Genres           []string `json:"genres"`
	Synonyms         []string `json:"synonyms"`
	Source           string   `json:"source"`
	Description      string   `json:"description"`
}

type WeebClient

type WeebClient struct {
	AnilistClientID     string
	AnilistClientSecret string

	// For basic Auth
	MALClient *mal.MALClient
}

func NewWeebClient

func NewWeebClient(anilistcid, anilistsec, maluname, malpw string) *WeebClient

func (*WeebClient) AnilistOnMessage

func (c *WeebClient) AnilistOnMessage(m *dgofw.DiscordMessage)

func (*WeebClient) MALOnMessage

func (c *WeebClient) MALOnMessage(m *dgofw.DiscordMessage)

Jump to

Keyboard shortcuts

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