core

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomCommands

func CustomCommands(irc oodle.IRCClient) oodle.Trigger

CustomCommands lets you make custom commands via. config

func Echo

func Echo() oodle.Command

Echo echoes back your nick!

func Help

func Help(bot oodle.Bot) oodle.Command

Help gives help info for commands

func List

func List(bot oodle.Bot, sender oodle.Sender) oodle.Command

List lists all the commands

func Register

func Register(deps *oodle.Deps) error

Register wires everything up

func Seen

func Seen() (oodle.Command, oodle.Trigger)

Seen tells you when it last saw someone

func Tell

func Tell(irc oodle.IRCClient, db *sql.DB) (oodle.Command, oodle.Trigger)

Tell lets users send a msg. to an inactive user

func TitleScraper

func TitleScraper(irc oodle.IRCClient) oodle.Trigger

TitleScraper fetches, scrapes and sends titles whenever it sees urls

func Version

func Version() oodle.Command

Types

type Letter

type Letter struct {
	ID        uint       `db:"id"`
	CreatedAt time.Time  `db:"created_at"`
	UpdatedAt time.Time  `db:"updated_at"`
	DeletedAt *time.Time `db:"deleted_at"`
	From      string     `db:"from"`
	To        string     `db:"to"`
	Body      string     `db:"body"`
	When      time.Time  `db:"when"`
}

type MailBox

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

func NewMailBox

func NewMailBox(db *sql.DB) *MailBox

func (*MailBox) Delete

func (t *MailBox) Delete(letters []*Letter)

func (*MailBox) GetLetters

func (t *MailBox) GetLetters(to string) []*Letter

func (*MailBox) HasMail

func (t *MailBox) HasMail(to string) bool

func (*MailBox) Migrate

func (t *MailBox) Migrate()

func (*MailBox) Send

func (t *MailBox) Send(l Letter) error

Jump to

Keyboard shortcuts

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