Skip to content

Commit

Permalink
Create CommitBot.txt (#1)
Browse files Browse the repository at this point in the history
Slack bot for creating commits.

Reference commitsto#240
  • Loading branch information
echodaniel authored Aug 23, 2018
1 parent 18265f9 commit 065e119
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions CommitBot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#To isolate the environment from any other Python projects on the production/developtment system.
virtualenv commitbot

#Activate the environment.
source commitbot/bin/activate

#Install Slack client so the bot can communicate within a channel.
pip install slackclient

#SLACK APP GUI
#Create App and Workspace that can receive commands from Slack API.
#https://api.slack.com/apps?new_app_token=1
#Will test on development workspace before deployed to production.

#Add bot user. "Bot Users" > "Features" > "Add a Bot User", choose display name, choose username, "Add Bot User"

#Slack bots use both RTM and Web APIs. The pip install slackclient command earlier allows the bot to authenticate once for both of these.

#Install Slack App.
#"Settings" > "Install App"
#This should all be done through the Slack App GUI.
#Authenticate as the bot through oauth token obtained earlier.

#TERMINAL
#Export secret token as env var (with permission) so it's saved as an environment variable.

0 comments on commit 065e119

Please sign in to comment.