diff --git a/README.md b/README.md index cef4979..93878ae 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ enabled = False ``` ### General Settings -The following settings determine how the bot responds. By default, the bot will not spam the default channel. Setting `respond_by_dm_only` to `True` will force all messages to be sent via DM, which may not be desired. Setting it to [`False`] will allow responses in the channel for all to see. +The following settings determine how the bot responds. By default, the bot will not spam the default channel. Setting `respond_by_dm_only` to `True` will force all messages to be sent via DM, which may not be desired. Setting it to [`False`] will allow responses in the channel for all to see. If you have no default channel you can set this value to `-1` or any unused channel index. ```ini [general] diff --git a/config.template b/config.template index 342ffab..9392342 100644 --- a/config.template +++ b/config.template @@ -25,7 +25,7 @@ port = /dev/ttyUSB0 [general] # if False will respond on all channels but the default channel respond_by_dm_only = True -# defaultChannel is the meshtastic default public channel, e.g. LongFast +# defaultChannel is the meshtastic default public channel, e.g. LongFast (if none use -1) defaultChannel = 0 # ignoreDefaultChannel, the bot will ignore the default channel set above ignoreDefaultChannel = False diff --git a/launch.sh b/launch.sh index 904df76..bd8f968 100755 --- a/launch.sh +++ b/launch.sh @@ -17,9 +17,9 @@ else fi # launch the application -if [ "$1" == "pong" ]; then +if [[ "$1" == pong* ]]; then python3 pong_bot.py -elif [ "$1" == "mesh" ]; then +elif [[ "$1" == mesh* ]]; then python3 mesh_bot.py elif [ "$1" == "html" ]; then python3 etc/report_generator.py