reminders

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPlugin

func RegisterPlugin()

Types

type Plugin

type Plugin struct{}

func (*Plugin) AddCommands added in v1.4.1

func (p *Plugin) AddCommands()

func (*Plugin) BotInit added in v1.4.1

func (p *Plugin) BotInit()

func (*Plugin) Name

func (p *Plugin) Name() string

type Reminder

type Reminder struct {
	gorm.Model
	UserID    string
	ChannelID string
	Message   string
	When      int64
}

func GetChannelReminders

func GetChannelReminders(channel int64) (results []*Reminder, err error)

func GetUserReminders

func GetUserReminders(userID int64) (results []*Reminder, err error)

func NewReminder

func NewReminder(userID int64, channelID int64, message string, when time.Time) (*Reminder, error)

func (*Reminder) ChannelIDInt

func (r *Reminder) ChannelIDInt() (i int64)

func (*Reminder) Trigger

func (r *Reminder) Trigger() error

func (*Reminder) UserIDInt

func (r *Reminder) UserIDInt() (i int64)

Jump to

Keyboard shortcuts

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