seen

package
v0.0.0-...-9fccf9b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeenResult

type SeenResult struct {
	Nick    string        `bson:"nick"`
	Channel string        `bson:"channel"`
	Id      bson.ObjectId `bson:"_id"`
	Text    string        `bson:"chattext"`
}

func DurationSinceLastMessage

func DurationSinceLastMessage(username string, channel string, database *mgo.Database) (sr *SeenResult, err error)

func (*SeenResult) DurationSinceMessage

func (res *SeenResult) DurationSinceMessage() time.Duration

type SeenService

type SeenService struct {
	server.BotHandlerService
	MongoSession *mgo.Session
	MongoDB      *mgo.Database
}

func (*SeenService) DispatchRequest

func (svc *SeenService) DispatchRequest(botRequest *server.BotRequest)

func (*SeenService) NewService

func (svc *SeenService) NewService(config *iniconf.ConfigFile, publishToIRCChan chan *server.BotResponse) server.BotHandler

Jump to

Keyboard shortcuts

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