Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit e6dc6ea

Browse files
authored
Update README.md
1 parent 23e3a78 commit e6dc6ea

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div align="center">
22
<h1>Charles CSEC (Beta)</h1>
3+
<h2>V0.2 Beta</h2>
34
<img src="https://user-images.githubusercontent.com/76649588/208201214-add50e06-c0da-4e2d-ba87-d33c797d035b.png">
45
</div>
56

@@ -56,28 +57,25 @@ You ***have installed the various dependencies*** now you **can configure your s
5657

5758
## Configuration
5859

59-
To configure your server **open the file named *server.py***.
60+
To configure your server, **open the *config.json* file in the following path: *server/config.json***.
6061

6162
Go to the top of code until you find this part:
6263

63-
```python
64-
#vars
65-
welcome_message = "[red]Welcome to <chat name>[/red]"
66-
clients = []
67-
username = {}
68-
buffer = 1024
69-
70-
#config
71-
ip = "127.0.0.1"
72-
port = 8889
64+
```json
65+
{
66+
"ip": "127.0.0.1",
67+
"port": 8889,
68+
"buffer": 1024,
69+
"welcome_message": "[red]welcome to <chat name>[/red]"
70+
}
7371
```
7472

7573
| Variable | Description |
7674
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
77-
| welcome_message | Welcome message to new users, the colors can be found in the **[Rich documentation](https://rich.readthedocs.io/en/stable/appendix/colors.html)** |
78-
| buffer | It is the maximum network buffer, if you change this value the ***RSA key*** will ***increase in size*** |
7975
| ip | The IP address where the server will start waiting for connections |
8076
| port | It is the **connection port**, it is recommended to ***keep it as the default*** (***8889***) |
77+
| buffer | It is the maximum network buffer, if you change this value the ***RSA key*** will ***increase in size*** |
78+
| welcome_message | Welcome message to new users, the colors can be found in the **[Rich documentation](https://rich.readthedocs.io/en/stable/appendix/colors.html)** |
8179

8280
## Running
8381

@@ -86,13 +84,13 @@ To start the program just ***go to the program folder*** and execute this comman
8684
#### Client
8785

8886
```bash
89-
python client.py
87+
cd client && python main.py
9088
```
9189

9290
#### Server
9391

9492
```bash
95-
python server.py
93+
cd server && python main.py
9694
```
9795

9896
## How work

0 commit comments

Comments
 (0)