Changeset 366 in code for trunk/README.md


Ignore:
Timestamp:
Jul 22, 2020, 11:06:03 AM (5 years ago)
Author:
nomeji
Message:

readme: expand usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.md

    r337 r366  
    1313## Usage
    1414
    15     go run ./cmd/sojuctl create-user <username> -admin
     15See the man page at `doc/soju.1.scd` for more information.
     16
     17### Server side
     18
     19To create an admin user and start soju, run these commands:
     20
     21    go run ./cmd/sojuctl create-user <soju username> -admin
    1622    go run ./cmd/soju -listen irc+insecure://127.0.0.1:6667
    1723
    18 Then connect with username `<username>/chat.freenode.net` and join `#soju`.
     24### Client side
    1925
    20 See the man page at `doc/soju.1.scd` for more information.
     26soju can operate in two different modes: multi upstream and single upstream.
     27
     28#### Single upstream mode
     29
     30In this mode, 1 upstream connection to a irc server = 1 connection to your soju
     31bouncer.
     32
     33The easiest and fastest way to use this is to specify the address of the server
     34in your username in your client configuration. For example to connect to
     35Freenode, your username will be: `<soju username>/chat.freenode.net`. Also set
     36your soju password in the password field of your client configuration.
     37
     38This will autoconfigure soju by adding a network with the address
     39`chat.freenode.net` and then autoconnect to it. You will now be able to join
     40any channel like you would normally do.
     41
     42#### Multi upstream mode
     43
     44In this mode, a single connection to your soju bouncer can handle multiple
     45upstream connections. You will need to manually configure each upstream
     46connection using the the special `BouncerServ` user.
     47
     48Connect to your soju server by specifying your soju username in the username
     49field in your client and your password in the password field.
     50
     51You should now be able to send private messages to the `BouncerServ`. You can
     52send it commands to configure soju. Create new networks:
     53
     54    /msg BouncerServ network create -addr chat.freenode.net -name freenode
     55    /msg BouncerServ network create -addr irc.rizon.net -name rizon
     56
     57You will now be able to join channels on these networks by specifying their
     58name:
     59
     60    /join #soju/freenode
     61    /join #somechannel/rizon
     62
     63#### Notes
     64
     65soju will automatically save and restore the channels you were connected to.
    2166
    2267## Contributing
Note: See TracChangeset for help on using the changeset viewer.