commands

package
v0.0.0-...-bfe6551 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParseErr = errors.New("Illegal syntax")

Time format parsing

Functions

func GetPort

func GetPort() string

func Parse

func Parse(format string) (map[string]int, error)

Types

type Echo

type Echo struct {
	ezbot.Command
	// contains filtered or unexported fields
}

Echos back to user, example irc log user: bot! bot: user!

func NewEcho

func NewEcho(nick string) *Echo

func (*Echo) Execute

func (e *Echo) Execute(user string, msg string, args []string)

type Git

type Git struct {
	ezbot.Command
	// contains filtered or unexported fields
}

func NewGit

func NewGit() *Git

func (*Git) Endpoint

func (g *Git) Endpoint(w http.ResponseWriter, r *http.Request)

func (*Git) Once

func (g *Git) Once()

type Letter

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

type Payload

type Payload struct {
	Commits []struct {
		URL string `json:"url"`
	}
}

type Reminder

type Reminder struct {
	ezbot.Command
}

Sends you a reminder user: .reminder 30min2sec blah blah bot: Okie Dokie!

func NewReminder

func NewReminder() *Reminder

func (*Reminder) Execute

func (r *Reminder) Execute(user string, msg string, args []string)

type Seen

type Seen struct {
	ezbot.Command
	// contains filtered or unexported fields
}

Sends last time a user was active user: .seen user2 bot: user2 was last seen 2 hours ago

func NewSeen

func NewSeen() *Seen

func (*Seen) Execute

func (s *Seen) Execute(user string, msg string, args []string)

func (*Seen) OnJoin

func (s *Seen) OnJoin(user string)

func (*Seen) OnLeave

func (s *Seen) OnLeave(user string)

func (*Seen) OnMsg

func (s *Seen) OnMsg(user string, msg string)

type Tell

type Tell struct {
	ezbot.Command
	// contains filtered or unexported fields
}

Acts as mailbox for offline users from: .tell to <letter> bot: message bot: 1hr ago

func NewTell

func NewTell() *Tell

func (*Tell) Execute

func (t *Tell) Execute(user string, msg string, args []string)

func (*Tell) Notify

func (t *Tell) Notify(user string)

Notifies when user has some letters

func (*Tell) OnJoin

func (t *Tell) OnJoin(user string)

func (*Tell) OnMsg

func (t *Tell) OnMsg(user string, msg string)

type TimeIn

type TimeIn struct {
	ezbot.Command
}

func NewTimeIn

func NewTimeIn() *TimeIn

func (*TimeIn) Execute

func (t *TimeIn) Execute(user string, msg string, args []string)

type Title

type Title struct {
	ezbot.Command
}

user: http://exez.in ezbot: exezin

func NewTitle

func NewTitle() *Title

func (*Title) OnMsg

func (t *Title) OnMsg(user string, msg string)

Jump to

Keyboard shortcuts

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