instagram

package
v0.0.0-...-8101777 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	gorm.Model
	GuildID          string
	ChannelOrUserID  string // UserID in case of DMs
	DM               bool
	DisablePostFeed  bool `gorm:"default:false"`
	DisableStoryFeed bool `gorm:"default:false"`
	AddedBy          string
	BotID            string // only relevant for DMs

	InstagramUsername  string
	InstagramAccountID string

	LastCheck time.Time
	feed.Check

	StoriesLastCheck time.Time
	StoriesCheck     feed.Check `gorm:"embedded;embedded_prefix:stories_"`

	IGTVLastCheck time.Time
	IGTVCheck     feed.Check `gorm:"embedded;embedded_prefix:igtv_"`
}

func (*Entry) TableName

func (*Entry) TableName() string

type Plugin

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

func (*Plugin) Action

func (p *Plugin) Action(event *events.Event) bool

func (*Plugin) Help

func (p *Plugin) Help() *common.PluginHelp

func (*Plugin) Names

func (p *Plugin) Names() []string

func (*Plugin) Passthrough

func (p *Plugin) Passthrough() bool

func (*Plugin) Priority

func (p *Plugin) Priority() int

func (*Plugin) Start

func (p *Plugin) Start(params common.StartParameters) error

func (*Plugin) Stop

func (p *Plugin) Stop(params common.StopParameters) error

type Post

type Post struct {
	gorm.Model
	EntryID uint

	PostID     string
	MessageIDs pq.StringArray `gorm:"type:varchar[]"`
}

Post model maintained by Worker

func (*Post) TableName

func (*Post) TableName() string

Jump to

Keyboard shortcuts

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