cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cli exposes the local-CLI constructor and raw-message accessor for botbooter. Import it when your bot runs on the local CLI; it pulls in no platform SDK, so a CLI-only binary never compiles discordgo, slack-go or go-telegram.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(in io.Reader, out io.Writer) *botbooter.Bot

New creates a CLI bot backed by the given reader and writer.

func RawData

func RawData(m *botbooter.Message) (*botbooter.CLIMessage, bool)

RawData returns the parsed CLI line carried on m, reporting whether m originated from the CLI adapter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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