Giter VIP home page Giter VIP logo

slack-testimonials-bot's Introduction

slack-testimonials-bot

Slack bot that shares and promotes awareness of KA's testimonials

To run locally:

  • First run make decrypt_secrets, then follow the instructions
  • Then run make deps
  • Then run make serve

== Deployment

There's two separate things to deploy here:

The api endpoints that send new testimonials to slack runs as a appengine standard application. Deploy these by running make deploy. To test that the deploy succeeded, you can hit /test_new_testimonial and verify that a new default testimonial is sent to the #testimonials channel.

For access to the App Engine part of this application, ask #it for access to khan-testimonials-turtle GCP project.

The slack client that listens for reactions to slack messages and updates vote totals (listener.py) runs on toby, using the configuration found here. To update that code, follow these steps:

# SSH into toby:
gcloud --project=khan-internal-services compute ssh \
    ubuntu@toby-internal-webserver

# cd to the project directory
cd /home/ubuntu/slack-testimonials-bot

# pull the latest code
git fetch && git checkout origin/master

# restart the service to pull in that latest code
sudo systemctl restart slack-testimonials-bot

To test that this deploy succeeded, upvote a recently high quality testimonial. This should eventually reshare that testimonial to the #khan-academy channel.

== Fixing when it breaks

If something is weird with the App Engine deployment, try going in to cloud storage and wiping the staging bucket in there.

slack-testimonials-bot's People

Contributors

csilvers avatar dependabot[bot] avatar dkapadia avatar drosile avatar jdan avatar kamens avatar seandriedger avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

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.