wiki-plugin-mech 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/mech.js +3 -3
- package/package.json +1 -1
package/client/mech.js
CHANGED
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
function walk_emit ({elem,command,args,state}) {
|
|
275
|
-
if(!('neighborhood' in state)) return trouble(elem,`
|
|
275
|
+
if(!('neighborhood' in state)) return trouble(elem,`WALK expects state.neighborhood, like from NEIGHBORS.`)
|
|
276
276
|
inspect(elem,'neighborhood',state)
|
|
277
277
|
const steps = walks(state.neighborhood)
|
|
278
278
|
const aspects = steps.filter(({graph})=>graph)
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
.map(info => info.domain)
|
|
593
593
|
.filter(uniq)
|
|
594
594
|
const any = array => array[Math.floor(Math.random()*array.length)]
|
|
595
|
-
console.log(infos)
|
|
595
|
+
if(state.debug) console.log(infos)
|
|
596
596
|
const items = [
|
|
597
597
|
{type:'roster', text:"Mech\n"+sites.join("\n")},
|
|
598
598
|
{type:'activity', text:`ROSTER Mech\nSINCE 30 days`}]
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
const start = rand(here)
|
|
806
806
|
done.add(start.slug)
|
|
807
807
|
node(start)
|
|
808
|
-
for (n=5;n>0;n--) {
|
|
808
|
+
for (let n=5;n>0;n--) {
|
|
809
809
|
try {
|
|
810
810
|
const slugs = links(nid)
|
|
811
811
|
const slug = rand(slugs)
|