Giter VIP home page Giter VIP logo

slack-starterbot's Introduction

A CatFacts slack bot, based on slack-starterbot

A simple Python-powered Slack bot, using the Cat Facts API.

Steps to set up:

  1. Set up a new Bot User, as instructed in the tutorial below (don't forget to invite your new bot user to one or more slack channels).
  2. configure your bot token environment variable:
    • export SLACK_BOT_TOKEN='your slack token pasted here'
  3. clone this repo and cd into the new directory
  4. create a new virtualenv for the project, and activate it
  5. run pip install requirements.txt to install the slackclient library
  6. find your bot user ID and target user ID
    • option 1: visit the API page below and use a Ctrl-F search to find your bot and target user IDs by name
    • option 2: use the included python script, passing in the user name as an argument
  7. configure your other environment variables:
    • export CATFACT_BOT_TRIGGER_STRING="cat"
    • export CATFACT_BOT_TARGET_USER_ID="U1234Q03D:
    • export CATFACT_BOT_ID="U1234Q03D"
  8. start the bot (you should see the bot user become 'active' in slack)
    • python starterbot.py

the starterbot tutorial

users.list API test page

slack-starterbot's People

Contributors

benjf avatar mattmakai 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.