mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
boo
This commit is contained in:
parent
1b38455714
commit
061e285734
@ -1,5 +1,5 @@
|
||||
{ "name": "gun"
|
||||
, "version": "0.0.1a"
|
||||
, "version": "0.0.1b"
|
||||
, "author": "Mark Nadal"
|
||||
, "description": "Graph engine."
|
||||
, "engines": {
|
||||
|
10
shots.js
10
shots.js
@ -170,6 +170,11 @@ module.exports = require('theory')
|
||||
shot.spray.action = function(m){
|
||||
console.log('spray', m);
|
||||
if(!m || !m.how){ return }
|
||||
if(m.where && m.where.mid){
|
||||
console.log("echo echo echo");
|
||||
console.log(m);
|
||||
return;
|
||||
}
|
||||
var where = a.text.is(m.where)? m.where : m.where.at;
|
||||
if(m.how.gun === 3){
|
||||
shot.shell(m.what._['%']||where, function(g,e){
|
||||
@ -204,6 +209,11 @@ module.exports = require('theory')
|
||||
});
|
||||
}
|
||||
shot.pump = function(fn){
|
||||
(function(){
|
||||
if(opt.src && opt.src.send){
|
||||
opt.src.send({count: 1});
|
||||
}
|
||||
})();
|
||||
shot.pump.action = fn || shot.pump.action;
|
||||
return shot;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user