reminders

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: MIT Imports: 14 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) InitBot

func (p *Plugin) InitBot()

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(client *redis.Client, 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