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)
Click to show internal directories.
Click to hide internal directories.