GithubHelp home page GithubHelp logo

michael-barlow3 / wtf-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from department-of-veterans-affairs/wtf-bot

0.0 0.0 0.0 107 KB

A Flask application that powers the /wtf Slack command

License: Creative Commons Zero v1.0 Universal

Python 100.00%

wtf-bot's Introduction

wtf-bot

A Flask application that powers the /wtf Slack command. Inspired by a previous incarnation of similar functionality. Configured for deployment on Cloud Foundry. Relies on the VA acronym list.

Local development

Clone this repo.

$ git clone https://github.com/department-of-veterans-affairs/wtf-bot.git
$ cd /path/to/wtf-bot/`

Create and configure virtual environment.

*nix

 $ python3 -m venv venv
 $ source venv/bin/activate
 $ pip3 install -r requirements.txt

Windows

> python3 -m venv venv
> venv\Scripts\activate
> pip3 install -r requirements.txt

Set environment variables.

*nix

$ export FLASK_APP=/path/to/wtf-bot/wtf.py
$ export FLASK_DEBUG=1
$ export SLACK_TOKENS={comma separated tokens to be defined by you}
$ export DATA_URL=https://raw.githubusercontent.com/department-of-veterans-affairs/acronyms/master/acronyms.csv

Windows

$ set FLASK_APP=/path/to/wtf-bot/wtf.py
$ set FLASK_DEBUG=1
$ set SLACK_TOKENS={comma separated tokens to be defined by you}
$ set DATA_URL=https://raw.githubusercontent.com/department-of-veterans-affairs/acronyms/master/acronyms.csv

Run tests.

$ pytest tests*.py

Run the local server.

$ flask run

Query the /slack endpoint.

$ curl -X POST http://127.0.0.1:5000/slack -d "text=aaa&token={to be defined by you}"

Bugs, feature requests, or contributions

Open an Issue. Pull requests welcome.

wtf-bot's People

Contributors

batemapf avatar ffafara-tw avatar karlbrown-va avatar michael-barlow3 avatar dependabot[bot] 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.