quotes

package
v0.0.0-...-522903d Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddQuote

func CreateAddQuote(context *bot.Context) bot.Handler

CreateAddQuote does nothing

func CreateRandomQuote

func CreateRandomQuote(context *bot.Context) bot.Handler

CreateRandomQuote does nothing

func Setup

func Setup(handlers Handlers, context *bot.Context)

Setup adds the quote handlers to the router

Types

type Handlers

type Handlers interface {
	AddHandler(definition string, givenHandler bot.Handler)
}

Handlers stores handlers

type Quote

type Quote struct {
	ID      bson.ObjectId `bson:"_id,omitempty"`
	SaidBy  string
	AddedBy string
	When    int
	What    string
}

Quote what a quote contains

Jump to

Keyboard shortcuts

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