CactusBot icon indicating copy to clipboard operation
CactusBot copied to clipboard

Unified Service model

Open 2Cubed opened this issue 8 years ago • 2 comments
trafficstars

The way we set up and organize Services currently is based entirely on what the class contains, and we are making far too many assumptions about what the actual Service implementation looks like. We need an abstract class, containing the following.

  • [ ] Logger initialization
  • [ ] handlers initialization
  • [ ] Service.run required method

2Cubed avatar Jan 02 '17 12:01 2Cubed

It would be nice to run cactusbot without plugging in config info for a specific service such as beam. For developing, I'd prefer to test on a simple echo server.

pylang avatar Mar 28 '17 05:03 pylang

Definitely will want that, in the form of EchoService or something. :+1:

2Cubed avatar Mar 28 '17 05:03 2Cubed