-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
20 lines (20 loc) · 1.93 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "create-from-slack",
"version": "0.0.1",
"dependencies": {
"@slack/client": "^2.2.1",
"request": "^2.69.0"
},
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"gitHead": "2b534608e6ecb4f9a6f96500423b06c47b4f0043",
"readme": "# create-from-slack\n\nsteps\n\n1. create a bot user for your slack team and copy the access token for it\n\n2. create a .env file with \n ```\n SLACK_TOKEN=xxxxxx\n METAMAP_ID=XX\n ```\n replacing the all the x's with valid values. \n The METAMAP_ID will be the map that any topics you create get posted to\n\n3. run `npm install`\n\n4. run `node main.js`\n\n5. go to metamaps and retrieve an access token for your user by going to the home page, signing in, and then opening the console. \n With the javascript console open, run\n ```\n var token = $.post('/api/v1/tokens', { token: { description: 'token for slack' }});\n token.responseJSON.tokens[0].token\n ```\n copy that token value into your clipboard\n\n6. go to slack, and open a direct message conversation with your bot, then type in \n ```\n token XXXXXXX\n ```\n and replace the X's with your token from metamaps\n\n7. in any channel that your bot is in, including your private chat with it, you can create topics onto your map\n You can do this by first adding the emoji which represents the metacode you want to use, for example\n ```\n :group:\n ```\n then add a space, then type the name for the topic\n ```\n :group: My Group\n ```\n You must put only one topic in each message for now. \n Note: you will only be able to create topics of the types which are listed in the `metamaps.js` file under metacodes\n\n",
"readmeFilename": "README.md",
"description": "steps",
"_id": "slacker@0.0.1",
"_shasum": "1f7516f1ac7b915372e43162534baf6b5f667db0",
"_from": "metamaps/create-from-slack",
"_resolved": "git://github.com/metamaps/create-from-slack.git#2b534608e6ecb4f9a6f96500423b06c47b4f0043"
}