Research: multi-DAO support for FE Bot
Assign
Data Source
Priority
Status
Description
Estimated Completion
Tags
Property
How to modularize code to point to different data sources for different DAOs
Solution:
- the way you'd support multiple DAOs. you'd pass to db_query also a dao_id (which can simply be the server id from the Discord ctx object) and that'll create the fork that will enable you to connect to a different server depending on which Discord server (aka DAO) the command is coming from
- ‣‣‣
initially you can hard-code the mapping in the code and just restart the bot every time we add a new DAO and longer term that mapping can be handled dynamically without having to restart the bot