UNPKG

@ptkdev/node-discord-bot-boilerplate

Version:

Create your discord bot with this friendly boilerplate. Use this repository as template for your bot

33 lines 842 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.text = void 0; /** * Discord Hears * ===================== * * @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev) * Alì Shadman [@AliShadman95] * * @license: MIT License * */ const discord_1 = __importDefault(require("./discord")); /** * hears: any taxt * ===================== * Listen any text user write * */ const text = async () => { discord_1.default.on("message", (ctx) => { if (ctx.content === "ciao") { ctx.reply(ctx.content); } }); }; exports.text = text; exports.default = text; //# sourceMappingURL=hears.js.map