adayoung / ada-bot

Discord bot for Achaea!
MIT License
8 stars 7 forks source link

Implement data persistence with Redis backend #5

Closed adayoung closed 7 years ago

adayoung commented 7 years ago

PostMessage() should dump messages in a Redis powered queue which can then be consumed by the dispatcher. Redis provides a cheap method for holding ire.Gamefeed.LastID as well. This should address #1 and #4.

adayoung commented 7 years ago

... not to mention this is probably unsafe to use in a separate go routine and may lead to memory leaks, I think? :thinking: But I may be wrong, I don't really know Go all that well :grin:

adayoung commented 7 years ago

We have.. utils/storage which exposes a PostgreSQL DB connection.