Code Monkey home page Code Monkey logo

onurbulbul2 / affinity-groups-slackbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trussworks/affinity-groups-slackbot

0.0 0.0 0.0 291 KB

We made this slackbot to allow folks to opt into private affinity groups (read: private channels) within a Slack workspace without having to out themselves or forcing a public point of contact for the group to out themselves.

Home Page: https://github.com/trussworks/affinity-groups-slackbot

License: BSD 3-Clause "New" or "Revised" License

Python 95.86% Dockerfile 3.97% Procfile 0.17%

affinity-groups-slackbot's Introduction

affinity groups slackbot

We made this slackbot to allow folks to apply for admission into private affinity groups within a Slack workspace without forcing a public point of contact for the group to out themselves.

dev environment

To work with the slackbot & test locally, you'll need:

  • Python 3.6 or higher
    • Poetry
  • Some linting is performed by pre-commit, so don't forget to pre-commit install

working with the code

Install dependencies with command poetry install and keep them up-to-date with poetry lock.

To spin up the code locally, build the docker image via docker build -t affinity:latest . and docker run -p 9000:8080 affinity:latest

running the tests

You can run the tests from project root with command poetry run pytest.

deploying code to production

For Truss's instance of this bot, we have configured this to happen automatically on new commits to the main branch. GitHub Actions will build and push the docker image to an ECR repository in the trussworks-prod AWS account. In order to redeploy the lambda with the new image, you must copy and replace the image uri of the latest image into the Terraform located in trussworks-prod/affinity-groups-slackbot/main.tf for local.image_uri then apply.

affinity-groups-slackbot's People

Contributors

ralren avatar renovate[bot] avatar sojeri avatar duncan-truss avatar esacteksab avatar rpdelaney avatar mdrummerboy09 avatar eeeady avatar nelztruss 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.