...

Package echo

import "github.com/matrix-org/go-neb/services/echo"
Overview
Index

Overview ▾

Package echo implements a Service which echoes back !commands.

Constants

const ServiceType = "echo"

ServiceType of the Echo service

type Service

type Service struct {
    types.DefaultService
}

Service represents the Echo service. It has no Config fields.

func (*Service) Commands

func (e *Service) Commands(cli *matrix.Client) []types.Command

Commands supported:

!echo some message

Responds with a notice of "some message".