nyaa

package
v0.0.0-...-c46b426 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NyaaPlugin

type NyaaPlugin struct {
	NyaaId   string              `json:"nyaa_id"`
	Torrents map[string]*Torrent `json:"torrents"`

	CheckIntervalMinutes int `json:"check_interval_minutes"`

	NotificationsChannelId    string `json:"notifications_channel_id"`
	NotificationDownloadsStep int    `json:"notification_downloads_step"`
	// contains filtered or unexported fields
}

func (*NyaaPlugin) Close

func (p *NyaaPlugin) Close() (err error)

func (*NyaaPlugin) HandleMessage

func (p *NyaaPlugin) HandleMessage(msg *lolicon.Message) (done bool, err error)

func (*NyaaPlugin) Id

func (p *NyaaPlugin) Id() lolicon.PluginId

func (*NyaaPlugin) Open

func (p *NyaaPlugin) Open(s *discordgo.Session) (err error)

func (*NyaaPlugin) Setup

func (p *NyaaPlugin) Setup(cache storage.Driver) (err error)

type Torrent

type Torrent struct {
	Id        string `json:"id"`
	Title     string `json:"title"`
	URL       string `json:"url"`
	Downloads int    `json:"downloads"`
}

Torrent contains torrent information.

Jump to

Keyboard shortcuts

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