maimai

package module
v0.0.0-...-076bc79 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2016 License: GPL-2.0 Imports: 7 Imported by: 0

README

maimai.v2

Version 2 of the MaiMai bot for euphoria.io, using the gobot framework.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkTitleHandler

type LinkTitleHandler struct{}

LinkTitleHandler searches each SendEvent for urls and posts the link title (if available) for the first valid link it finds.

It is an empty struct because it does not need to maintain state.

func (*LinkTitleHandler) HandleIncoming

func (l *LinkTitleHandler) HandleIncoming(r *gobot.Room, p *proto.Packet) (*proto.Packet, error)

HandleIncoming checks incoming SendEvents for URLs and posts the link title for the first URL returning a valid title.

func (*LinkTitleHandler) Run

func (l *LinkTitleHandler) Run(r *gobot.Room)

Run is a no-op.

func (*LinkTitleHandler) Stop

func (l *LinkTitleHandler) Stop(r *gobot.Room)

Stop is a no-op.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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