npm install simple-command-in-chat
- 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.
- None
- 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.
- Run test with:
npm test