mirror of
https://github.com/Cyclenerd/meshcore-bot.git
synced 2026-03-28 17:42:46 +01:00
9ce4219f41ffae5d8d78eef45fe1cb5c66399cc2
🤖 MeshCore Bot
This script is a command bot that connects to a MeshCore device and responds to commands received in private channels.
Installation
-
Node.js: Make sure you have Node.js installed. You can download it from https://nodejs.org/ or install it on macOS with Homebrew package manager:
brew install node -
Clone: Clone this repo.
-
Dependencies: Open a terminal in the directory of the
meshcore-bot.jsscript and run:npm ci
Usage
To run the bot use the following command:
node meshcore-bot.js [SERIAL_PORT]
[SERIAL_PORT]is optional. If not provided, the script will default to/dev/cu.usbmodem1101.
Example
node meshcore-bot.js /dev/tty.usbmodem12345
Commands
.ping: The bot will respond with "PONG! 🏓"..date: The bot will respond with the current date and time in ISO format.
Languages
JavaScript
100%