/botyo-command-ping

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Ping Command for Botyo

npm npm npm

The Ping Command for Botyo sends a ping in a private message to a specific person, or makes the bot respond to the ping.

Usage

#ping [person]

For example:

  • #ping - Makes the bot respond to the ping if it's online.
  • #ping Alice - Sends a ping in a private message to Alice.

Install

Step 1. Install the module from npm.

npm install --save botyo-command-ping

Step 2. Register the module.

import Botyo from "botyo";
import PingCommand from "botyo-command-ping"

Botyo.builder()
    ...
    .registerModule(PingCommand)
    ...
    .build()
    .start();