GithubHelp home page GithubHelp logo

cmwendwa / sakabot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryansept/sakabot

0.0 0.0 0.0 33 KB

Sakabot is a slackbot designed to help Andelans find the owners of equipment and report them either lost or found.

License: GNU General Public License v3.0

Python 100.00%

sakabot's Introduction

Sakabot

Sakabot is a slackbot designed to help Andelans find the owners of equipment and report them either lost or found. It's been built in part using this wrapper to the slack rtm api https://github.com/lins05/slackbot.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You'll need a slack api bot token https://api.slack.com/bot-users.

Installing

Clone the repo from Github by running $ git clone [email protected]:RyanSept/sakabot.git

Change directory into package $ cd sakabot

Install the dependencies by running $ pip install requirements.txt

You can set the required environment variables like so

$ export BOT_TOKEN=<SLACK_API_BOT_TOKEN> 
$ export MONGODB_URI=<URI_TO_MONGO_DATABASE>
$ export ERRORS_TO=<SLACK_USER_TO_SEND_ERRORS_TO>

Before running you need to setup the database and populate it by running the sprawler on the OPs spreadsheet with your email credentials on it.

Deployment

To deploy on heroku, you need to push setup the app on heroku, add the appropriate configs(see installing section), set up a mongodb and scale the dyno heroku ps:scale worker=1

Usage

Searching for an item's owner To search for an item's owner send find charger|mac|thunderbolt <item_id> to @sakabot. eg. find charger 41

Reporting that you've lost an item When you lose an item, there's a chance that somebody has found it and submitted it to Sakabot. In that case we'll tell you who found it, otherwise, we'll slack you in case anyone reports they found it. To report an item as lost send lost charger|mac|thunderbolt <item_id> to @sakabot. eg. lost thunderbolt 33

Submit a found item When you find a lost item you can report that you found it and in case a user had reported it lost, we'll slack them immediately telling them you found it. To report that you found an item send found charger|mac|thunderbolt <item_id> to @sakabot eg. found mac 67

sakabot's People

Contributors

ianoti avatar ryansept 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.