single interface no public channel bug fix
This commit is contained in:
SpudGunMan
2024-10-12 19:18:46 -07:00
parent 759b89f790
commit fd43eb0ea1
3 changed files with 4 additions and 4 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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