Coder Social home page Coder Social logo

edi's Introduction

Edi

Simple and elegant Slack bot.

build status version license code style

License

Edi is copyright John Reese, and licensed under the MIT license. I am providing code in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

edi's People

Contributors

amyreese avatar

Watchers

 avatar James Cloos avatar  avatar

edi's Issues

Automatically reconnect to RTM

When Slack ends the RTM websocket, edi should automatically call rtm.start or rtm.connect rather than wait for a manual restart.

PM `help` to bot results in exception/exit

22:58:32,333 E bot:run():94   run loop exception, stopping
Traceback (most recent call last):
  File "/srv/irc/edi/.venv/lib/python3.7/site-packages/edi/bot.py", line 85, in run
    await self.dispatch(event)
  File "/srv/irc/edi/.venv/lib/python3.7/site-packages/edi/bot.py", line 217, in dispatch
    channel_name = self.slack.channels[event.channel].name
  File "/srv/irc/edi/.venv/lib/python3.7/site-packages/aioslack/state.py", line 42, in __getitem__
    raise KeyError(f"{self.type.__name__} {key} not in cache")
KeyError: 'Channel D0HQFE7NF not in cache'
22:58:32,335 V bot:stop():132   Stopping 4 units
22:58:32,337 I bot:stop():143   Goodbye!

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.