npm.io
1.1.0 • Published 10 years ago

whisper-handler

Licence
ISC
Version
1.1.0
Deps
0
Vulns
0
Weekly
0

whisper

A module for chat applications to handle World Of Warcraft style whisper commands

Usage

pass module a string in the format "/tell TARGET MESSAGE", and an object representing the target and message is returned.

Installation

npm install whisper-handler
Example
var whisper = require('whisper-handler');
var obj = whisper("/tell Ferdinand Hey man! I like your style...");

obj.target // "Ferdinand"
obj.message // "Hey man! I like your style..."

Keywords