- Install dependencies
$ npm install
- Launch MongoDB
- Seed regprocess collection (see below)
- Run program with defaults params (env vars)
$ npm start
Run on #hackerloop channel twich
$ CHANNEL=hackerloop CURRENT_SET=1 MONGODB_URL=mongodb://localhost:3001/meteor node main.js
Find a channel on twich that have a big traffic and message
$ TESTMODE=true CHANNEL=imaqtpie CURRENT_SET=1 MONGODB_URL=mongodb://localhost:3001/meteor node main.js
db.regprocess.insert([
{
"_id": ObjectId("59c3c180608b9f246b2302a1"),
"regex": "^(w|s|d|a|j|k)$",
"insensitive": true,
"recursive": true,
"type": "record",
"storage": "record",
"set": "1"
},
{
"_id": ObjectId("59c3c18e608b9f246b2302a2"),
"regex": "^(fart|prout)$",
"insensitive": true,
"recursive": true,
"type": "vote",
"storage": "vote",
"set": "1"
}
])