vcwild / wildoverflow

Twitch chatbot for my livestream
https://vcwild.github.io/wildoverflow/
GNU General Public License v3.0
15 stars 1 forks source link

Create multilevel key-value registers #2

Closed vcwild closed 3 years ago

vcwild commented 3 years ago

Create multilevel key-value registers

Structure demo:

# Database Schema
{
    "cache": {
        "streamer_1": ["user1", "user2","user3"],
    },
    "streamers": {
        "streamer_1": "streamer_name_1",
    }
}
vcwild commented 3 years ago

Solution:

# Database Schema
{
    "streamer_1": ["user1", "user2","user3"],
    "streamer_2": ["user2", "user3","user4"],
    "streamers": {
        "streamer_1": "streamer_name_1",
    }
}