barrucadu / yukibot

An IRC bot, and associated libraries, for the ##compsoc-uk-anime channel on Freenode
MIT License
10 stars 2 forks source link

Backend abstraction #33

Closed barrucadu closed 7 years ago

barrucadu commented 8 years ago

Really, there's very little that's actually IRC-specific in an IRC bot. There's the backend, and that's it. The rest of the bot (can be) almost totally oblivious to what the backend actually is, as long as it's kind of IRC-like.

Come up with an abstraction for backends which:

The job of a concrete backend implementation would be:

To most easily support different types of backend, the only configuration should be some sort of connection dictionary.

Furthermore, it should be possible for multiple backends to be executing simultaneously.

barrucadu commented 8 years ago

The IRC backend works well, but it would be nice to have another as a proof that this does abstract enough.