mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-08 09:53:02 +02:00
RC1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Random Mesh Scripts for BBS activities for use with Meshtastic nodes
|
||||
|
||||
## pong-bot.sh
|
||||

|
||||

|
||||
|
||||
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 |
@@ -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
|
||||
Reference in New Issue
Block a user