const Plugin = require("./../Plugin");

module.exports = class Ping extends Plugin {

    static get plugin() {
        return {
            name: "Ping",
            description: "Ping - Pong",
            help: "Send `ping`, get `pong`\nIf only life was _this_ easy."
        };
    }

    get commands() { return {
        ping: () => "Pong!"
    }; }

    onText({message}) {
        if (message.text !== "ping") return;
        this.log.debug("Got a ping");
        this.sendMessage(message.from.id, "Pong!");
    }
};
@@ -336,16 +336,21 @@
 =%3E %22Pong
+ pong
 !%22%0A    %7D
@@ -498,12 +498,12 @@
 age.
-from
+chat
 .id,

Fix Ping