Skip to content

sMythbot Command Syntax

shsorbom edited this page Jul 16, 2020 · 2 revisions

Basic Command Syntax

At their most basic, all sMythbot commands have the following structure:
!smythbot [command]
The !smythbot section tells the bot that it should interpret all of the following message as a command. The [command] section can be any command sMythbot can interpret. For example, typing:
!smythbot help
will cause sMythbot to output a friendly help message to the screen.

Advanced Syntax

Chaining Commands Together

It is possible to have more than one command in a single message by using the following syntax:
!smythbot [command 1] !smythbot [command 2]
A practical example of this would be:
!smythbot set mythbackend address 127.0.0.1 !smythbot set mythbackend port 6544
This will cause two separate reply messages to be sent. One informs the user that their Mythtv Backend address was set to 127.0.0.1, and the other informs the user that the port sMytbot will send commands on has been set to 6544.

Clone this wiki locally