Skip to content

Commit 4b0706d

Browse files
author
akakou
authored
Update README.md
1 parent 25edc27 commit 4b0706d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
11
# clastream
22
講義等で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+
```

0 commit comments

Comments
 (0)