shell

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Package shell implements a simple adapter that provides a readline style shell adapter for debugging purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell added in v0.3.1

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

Shell is an adapter that operatoes as a command line interface for testing bots.

func New

func New(nick string) (*Shell, error)

New constructs anew shell adapter. The bot will respond with user nick.

func (*Shell) IsTextOnly added in v0.3.1

func (s *Shell) IsTextOnly()

IsTextOnly help hint that this is a test-only adapter.

func (*Shell) Main added in v0.3.1

func (s *Shell) Main()

Main can be used to run this adapter as the main() function of a program.

func (*Shell) Receive added in v0.3.1

func (s *Shell) Receive() <-chan *hugot.Message

Receive is used to retrieve a mesage from the bot.

func (*Shell) Send added in v0.3.1

func (s *Shell) Send(ctx context.Context, m *hugot.Message)

Send is used to send this adapter a message.

Jump to

Keyboard shortcuts

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