Code Monkey home page Code Monkey logo

duckbot's Introduction

Duckbot

General purpose slack bot

Current version: 2.3.0
main.py is the driver for the bot. It handles creating the bot, connecting to slack, and the rtm read loop
duckbot.py sets up the event handlers, assigning them appropriately and sending messages
eventHandlers.py contains all the event handlers and their specific parsers
commandHandlers.py contains the handlers for bot commands
util.py contains various utility functions, such as ID matching and exit codes

Bot return codes:

RC=0x exit codes are special meaning codes, usually for signalling monitor script
    RC=00 , bot exited normally and will not restart
    RC=01 , there was an uncaught python error and will not restart. Likely needs manual fixing
    RC=02 , bot exited normally and will restart after updating

RC=1x exit codes signify an error during bot set up
    RC=10 , invalid bot id was returned to bot, should restart
    RC=11 , failed to connect to RTM, possible network hiccup, should restart

RC=2x exit codes signify an error during rtm use
    RC=20 , generic error during RTM read, should restart
    RC=21 , timeout error during RTM read, should restart

RC=3x exit codes signify an error during command processing
    RC=30 , malformed user id found

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.