pharaun / Karmator

Rust bot that works on IRC and Slack for tracking karma (upvotes/downvotes...)
BSD 3-Clause "New" or "Revised" License
17 stars 0 forks source link

Migrate slack and irc config out of main.hs into each module #146

Closed pharaun closed 6 years ago

pharaun commented 6 years ago

I'm not sure, but I think it may be possible to just move the irc specific and slack specific config bit into the irc and slack modules, and then clean up the main.hs a bit more.

I guess my main worry is that this will then be moving config-file implementation details into well the bot core, instead of being on the outer-skirt where it could be ok there (given separation of concerns) But given that i do have a config file module, it may make sense. I'll need to recover details there.

pharaun commented 6 years ago

I did that already, with dumping in the parser blob into each module, now its two separate project, there should be less quams with this, since its now no longer in the bot core.