This commit is contained in:
SpudGunMan
2024-06-26 21:29:19 -07:00
parent 8a3e681db3
commit d51783e824
4 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
Random Mesh Scripts for BBS activities for use with Meshtastic nodes
## pong-bot.sh
![alt text](img/pong-bot.jpg "Example Use")
![alt text](etc/pong-bot.jpg "Example Use")
Little bot which will trap keywords like ping and respond on a DM with pong. The script will also monitor the group channels for keywords to trap on. you can also `Ping @Data to Echo` as a example for further processing.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

+20
View File
@@ -0,0 +1,20 @@
# /etc/systemd/system/meshbot.service
# sudo systemctl daemon-reload
# sudo systemctl start meshbot.service
[Unit]
Description=PONG-BOT
After=network.target
[Service]
ExecStart=/usr/bin/python /usr/local/meshing-around/pong_bot.py
# Disable Python's buffering of STDOUT and STDERR, so that output from the
# service shows up immediately in systemd's logs
Environment=PYTHONUNBUFFERED=1
Restart=on-failure
Type=notify #try simple if any problems
[Install]
WantedBy=default.target