Skip to main content

on_command

Method
This is a method of the BotProtocol class in the protocols module.
Decorator to register a command handler.

Signature

Parameters

command
str
required
Command name (without /)

Returns

Returns
Callable
The result of the operation.

Usage

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 410