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
Click to show internal directories.
Click to hide internal directories.