Skip to content

cordcutters/chain-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chain cli

Command line interface for Chain, a simple chatting app

screenshot

Installing

1. Clone this repository

You can do this using the git CLI (if you have it installed) or just download the zip file on the Code page.

2. Install Python and the required dependencies

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.txt
(you might need to add python3 -m before the command or python -m)

Configuring

1. .chain file (optional)

The 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.

Running the cli

You just need to run the main.py file with python (or python3):

python main.py

You can also specify a username as an argument:

python main.py username

Credits

based on this repository

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%