The-Quill / SE-Chat-Terminal

SE chat in Terminal
MIT License
12 stars 1 forks source link

Simplify config structure #33

Closed The-Quill closed 5 years ago

The-Quill commented 8 years ago

I could simplify the config structure down quite a bit.

"room_domains": {
    "StackExchange": {
        "8595": "The 2nd Monitor",
        "6697": "Maid Cafe",
        "240": "The Nineteenth Byte"
    },
    "MetaStackExchange": {
        "89": "Tavern on the Meta"
    },
}
The-Quill commented 8 years ago

Hmm. I want to move toward a more flexible config where you can even just provide the roomid. but then you'd have to do an empty string for the value.

Hmmmmmmm

The-Quill commented 8 years ago

Potentially, something like this:

"StackExchange": [
    "8595",
    "6697",
    "240"
]
The-Quill commented 8 years ago

But then you loose the name connections. I suppose that simplifies the massive amount of messages if debug is on during initial connection.

The-Quill commented 8 years ago

I could wrap them in objects, but then the syntax is messy.

The-Quill commented 8 years ago

It'd look like that. new-config.json.zip

The-Quill commented 5 years ago

Fixed in f61d34a0b16d5f030ee787fce91888218f773923