UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

17 lines (16 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SetCommand = void 0; /** * Define the command. * @param {CommandOptions} options The options to build up the command. * @returns {Function} The decorator function. */ function SetCommand(options) { // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types return (target) => class extends target { name = options.name; options = options.options; }; } exports.SetCommand = SetCommand;