Support Multiple Networks

Issue #11 wontfix
Harry Reeder created an issue

Possel should support multiple chat networks. Basing examples here from the current wiki page specifying the Client-Server protocol here I've drawn up some examples of what this may look like.

Client Command to Connect to a Chat Network

{
    "command": "diff",
    "networks": {
        "_add": [{
            "name": "imaginarynet",
            "type": "irc",
            "server": "irc.imaginarynet.uk",
            "port": 6667,
            "ssl": false,
            "nick": "tbrb",
            "nick_alt": "tbrb`",
            "realname": "Harry Reeder",
            "username": false,
            "password": false
        }]
    }
}

The reason behind "type":"irc" is to allow for modularisation, so in future if other chat network types (such as xmpp) want to be supported, that doesn't require a re-write from the ground up to support.

Client Command to Join Channel

{
    "command": "diff",
    "channels": {
        "_add": [{
            "name": "#possel",
            "network": "imaginarynet"
        }]
    }
}

Other proposed commands would be modified like so, adding "network": "networkname" where required.

Comments (2)

  1. Harry Reeder reporter

    Alternatively the list of channels would be an attribute of their respective network, changing the client command to join channel to something more like this:

    {
        "command": "diff",
        "networks": {
            "imaginarynet": {
                "channels": {
                    "_add": [{ "name": "#possel" }]
                }
            }
        }
    }
    
  2. Log in to comment