Files
meshcore-bot/README.md
2025-08-30 17:56:02 +02:00

864 B

🤖 MeshCore Bot

This script is a command bot that connects to a MeshCore device and responds to commands received in private channels.

Installation

  1. Node.js: Make sure you have Node.js installed. You can download it from https://nodejs.org/.

  2. Clone:: Clone this repo.

  3. Dependencies: Open a terminal in the directory of the meshcore-bot.js script 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.