schafezp / karmabot

A telegram bot designed for group chats to allow users to upvote and downvote content similar to reddit.
https://schafezp.github.io/karmabot/
MIT License
6 stars 1 forks source link

Create service object to manage database functionality #64

Closed schafezp closed 6 years ago

schafezp commented 6 years ago

closes #8 closes #56

Bot takes a KarmabotDatabaseService which abstracts away the database functionality. This class can be subclassed to add support for postgres or other databases. This will be the route to adding support for neo4j later for issue #31 .

This PR has some more work to be done; all functions should be moved out of postgres_funcs and into telegramservice