Skip to content

ericN93/module

Repository files navigation

simple-command-in-chat

Maintainability Scrutinizer Code Quality Build Status codecov Build Status

Simple command in chat

Install

npm install simple-command-in-chat

Features

  • A extremly easy and light command for a chat etc.
  • User enter '/catchPhrase', '/joke','/asci' and '/quote' etc and and random string will be returned from each command. '/catchPhrase' will send a random catchPhrase and '/ascii' send random single line asci picture.
  • Under development, will have more commands/values in future.

Requirements

  • None

Usage

  • Require the module.
const Module = require('simple-command-in-chat');
  • Take your message in your websocket etc
sendMessage = command.getCheckCommand(sendMessage)
  • The message will be replaced if user has send one of the commands.

Test

  • Run test with:
npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published