Skip to main content

on_command

AsyncMethod
This is a method of the BotProtocol class in the protocols module.
Handle command

Signature

async def on_command(&self, command: &str, args: &[&str]) -> Result<BotResponse>

Parameters

command
&str
required
No description available.
args
&
required
No description available.

Returns

Returns
Result<BotResponse>
The result of the operation.