Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.59 KB

exporting_keys.md

File metadata and controls

49 lines (36 loc) · 1.59 KB

Exporting Keys

In the auth_credentials.py file in code folder, you can see all the keys which are required by the bot to function. They are configured to accept values from the environment.

Firstly for Github:

Create your own sample organization. Add a sample team to it. Use this to get the team ID.

export org_repo_owner='<your org name>' newcomers_team_id='<the team id>' USERNAME='<your github username>' PASSWORD='<your password>'

For LUIS API:

Sign up for a free account http://luis.ai/. Create a new app and train it (read more on how to do that here). Then publish it and get the path uid(a - separated unique id) and subscription key. Once done use:

export api_key='<subscription key>' path_secret='<path uid>'

For Slack:

We are working on event mocking. But you can still test out the API functions. First join the sample workspace here This workspace has been set to mock the main Systers workspace. All the project channels have been created with same name as that on Systers.

To generate the tokens for the sample workspace, simply activate the virtual environment and then type:

sudo bash ./generate_tokens.sh

It will generate the bot and legacy tokens. Export these into the environment as well.

Export announcement_channel_id='C9MCGNSQH'
Export maintainer_usergroup_id='SAQDWBCE7'