Commit ca83e81efcab58179c5f51dcb99d20ee51c645b8
dump state after loading everything!
Dominic Tarr committed on 7/20/2017, 10:53:07 AMParent: 6c6b3aeb35148f475c0f590a5bcbe2288be61d5e
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -13,9 +13,8 @@ | ||
13 | 13 … | //load current state |
14 | 14 … | var state = ssb.init(sbot, sbot.id, next) |
15 | 15 … | var irc = IRC(config, next) |
16 | 16 … | |
17 | - console.log("STATE", state) | |
18 | 17 … | function notify (note) { |
19 | 18 … | irc.say( |
20 | 19 … | note.type == 'channel' |
21 | 20 … | ? IRC.toChannel(note.target) |
@@ -27,8 +26,9 @@ | ||
27 | 26 … | |
28 | 27 … | function next () { |
29 | 28 … | if(--n) return |
30 | 29 … | //XXX: properly persist state with a flumeview? |
30 … | + console.log("STATE", state) | |
31 | 31 … | |
32 | 32 … | //make sure we have joined every channel |
33 | 33 … | for(var k in state.channels) { |
34 | 34 … | var channel = state.channels[k] === true ? k : state.channels[k] |
@@ -53,4 +53,5 @@ | ||
53 | 53 … | } |
54 | 54 … | |
55 | 55 … | |
56 | 56 … | |
57 … | + |
Built with git-ssb-web