rssplugin

package
v0.0.0-...-bb896f4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PLUGIN_TYPE    = "rss"
	PLUGIN_COMMAND = "rss"
)

Variables

View Source
var ErrNoValidStorage = errors.New("No valid storage set")

ErrNoValidStorage is set when the provided storage does not implement the correct functions

Functions

This section is empty.

Types

type RssPlugin

type RssPlugin struct {
	plugin.RedseliggPlugin
	// contains filtered or unexported fields
}

RssPlugin is a plugin that subscribes to RSS feeds and posts them as messages.

func New

func New(pluginConfig botconfig.PluginConfig) (*RssPlugin, error)

New returns a new RssPlugin

func (*RssPlugin) OnCommand

func (p *RssPlugin) OnCommand(cmd string, content string, post model.Post)

OnCommand implements the hook from the Bot

func (*RssPlugin) OnRun

func (p *RssPlugin) OnRun()

OnRun is called when the platform is ready

func (*RssPlugin) OnStop

func (p *RssPlugin) OnStop()

OnStop implements the hook from the bot

Jump to

Keyboard shortcuts

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