Command line interface for Chain, a simple chatting app
You can do this using the git CLI (if you have it installed) or just download the zip file on the Code page.
Then, you need to install the Python programming language
Any version of Python, starting from 3.7 and above will be fine.
After installing Python, you need to install the required dependencies:
pip install -r requirements.txtThe cli will always try to load configuration from it first. The file must be located in the same directory as the main.py file.
The default .chain file looks like this:
chain: wss://chain.laptop-cat.repl.co
username: (your username here)
The file is already included in the repository.
chain is the instance that the cli will connect to, defaults to official chain instance.
username is the username it will try to connect with.
You just need to run the main.py file with python (or python3):
python main.pyYou can also specify a username as an argument:
python main.py usernamebased on this repository
