File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1
1
# clastream
2
2
講義等でSlackの特定のチャンネルに来たメッセージを、ニ○ニコ風に流すアプリ
3
+
4
+ ## Environment
5
+ * Linux
6
+
7
+ ## Usage
8
+ ### Installation
9
+ #### 1. Install Node.js
10
+ Node.js[ このサイト] ( https://github.com/nodejs/node " Node.js ") を見てインストールしてください.
11
+
12
+ #### 2. Clone
13
+ 以下のコマンドを実行することで,このリポジトリをクローンすることができます.
14
+ ``` shell
15
+ git clone https://github.com/akakou/clastream/
16
+ ```
17
+ #### 3. Set Config
18
+ ` /config.js ` をエディタ等で編集します.
19
+ 何も編集してない場合,以下のようなコードが保存されていると思います.
20
+ ``` javascript
21
+ /* config.js
22
+ Set Config In This Source */
23
+
24
+ var config = {
25
+ channel_id: ' channel id' ,
26
+ bots_token: ' bots token'
27
+ }
28
+
29
+ module .exports = config;
30
+ ```
31
+
32
+ ここの` 'channel id' ` の部分にSlackのchannelのidを,` 'bots token' ` の部分に` Incoming Webhooks ` のtokenを張ってください.
33
+
34
+ #### Run Server
35
+ あなたのPCにNode.jsが入っていれば,以下のコマンドで実行できます.
36
+ ``` shell
37
+ node index.js
38
+ ```
You can’t perform that action at this time.
0 commit comments