Skip to content

MVC? #20

@colwem

Description

@colwem

I envision adding an mvc structure to this project.

  • activerecord backed models that will store their information in sqlite.
  • A routes file that will contain all the commands
    • hopefully we can write this in such a way that it self documents all the features the bot supports.
    • A command like rake routes can be issued that will either compile the routes file into a markdown list of all commands or print the commands to the irc user
  • We don't really need a view layer. The model and the controller can share this action.

We would have control and can separate ourselves both from the Cinch layer and our LPMClient layer. We would just make one plugin that catches all messages and hands them to the router then the renderer hands the output back to the plugin. It would be a great learning experience because we will probably model it heavily off of rails which I assume is something most of us are interested in.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions