commands

package
v0.0.0-...-55a1825 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package commands implements the command system for Robot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AAAAA

func AAAAA(ctx context.Context, call *call)

AAAAA AAAAAAAAA A AAAAAAA AAA AAAAAAAA AAA AAA AAAAAAA AAAA AA.

func Do

func Do(ctx context.Context, br *brain.Brain, lg *log.Logger, send chan<- irc.Message, msg irc.Message, priv, cmd string) string

Do performs the first command appropriate for the message and returns the name of the performed command, or the empty string if none. priv is the privilege level for the user and cmd is the command invocation as parsed by Parse.

func Effect

func Effect(effect, msg string) string

Effect applies a named effect to a message.

func Parse

func Parse(me, msg string) (cmd string, ok bool)

Parse parses a command invocation from a message. A command invocation is a message beginning or ending with me, optionally preceded by @ or followed by punctuation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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