Giter VIP home page Giter VIP logo

slackbot-workout-1's Introduction

slackbot-workout

A fun hack that gets Slackbot to force your teammates to work out!

Instructions

  1. Clone the repo and navigate into the directory in your terminal.

    $ git clone [email protected]:brandonshin/slackbot-workout.git

  2. Go to your slack home page https://{yourgroup}.slack.com/home & click on Integrations on the left sidebar.

  3. Scroll All the Way Down until you see Slack API and Slackbot. You'll need to access these two integrations.

  4. In the Slack API Page, select WebAPI in the left side bar, scroll all the way down, and register yourself an auth token. You should see this. Take note of the token, e.g. xoxp-2751727432-4028172038-5281317294-3c46b1. This is your User Auth Token

  5. In the Slackbot (Remote control page). Register an integration & you should see this. Make sure you grab just the token out of the url, e.g. AizJbQ24l38ai4DlQD9yFELb

  6. Save your SLACK_USER_TOKEN_STRING and SLACK_URL_TOKEN_STRING as environmental variables in your terminal.

    $ export SLACK_USER_TOKEN_STRING=YOURUSERTOKEN

    $ export SLACK_URL_TOKEN_STRING=YOURURLTOKEN

    Open default.json and set teamDomain (ex: ctrlla) channelName (ex: general) and channelId (ex: B22D35YMS). Save the file as config.json in the same directory. Set any other configurations as you like.

    If you don't know the channel Id, fetch it using

    $ python fetchChannelId.py channelname

  7. If you haven't set up pip for python, go in your terminal and run. $ sudo easy_install pip

  8. While in the project directory, run

    $ sudo pip install -r requirements.txt

    $ python slackbotExercise.py

Run the script to start the workouts and hit ctrl+c to stop the script. Hope you have fun with it!

slackbot-workout-1's People

Contributors

brandonshin avatar ahollenbach avatar craftbyte avatar trigun0x2 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.