RSSModule

package
v0.0.0-...-06d5ffc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logging.Logger
)

Functions

This section is empty.

Types

type RSSCommand

type RSSCommand struct {
	// contains filtered or unexported fields
}

func (RSSCommand) Aliases

func (cc RSSCommand) Aliases() []string

func (RSSCommand) Description

func (cc RSSCommand) Description() string

func (RSSCommand) Name

func (cc RSSCommand) Name() string

func (RSSCommand) Permission

func (cc RSSCommand) Permission() int

func (RSSCommand) Usage

func (cc RSSCommand) Usage() string

type RSSModule

type RSSModule struct {
	Bot      *Bot.Bot
	Commands []RSSCommand
}

func New

func New(bot *Bot.Bot, l *logging.Logger) (c *RSSModule)

func (*RSSModule) CommandInfo

func (c *RSSModule) CommandInfo(name string, data *Bot.ServerData) (response *Bot.Embed, found bool)

func (*RSSModule) Execute

func (c *RSSModule) Execute(s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)

func (*RSSModule) FollowRSS

func (c *RSSModule) FollowRSS(cmd RSSCommand, s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)

func (*RSSModule) HelpFields

func (c *RSSModule) HelpFields() (title string, content string)

func (*RSSModule) UnfollowRSS

func (c *RSSModule) UnfollowRSS(cmd RSSCommand, s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)

type RSSPoll

type RSSPoll struct {
	Url         string    `bson:"url"`
	LastUpdated time.Time `bson:"last-updated"`
	Channels    []string  `bson:"channels"`
}

Jump to

Keyboard shortcuts

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