This repository contains a python3 implementation of an IRC Server and Client built according to RFC specifications. The server is dockerized and listens on port 8888.
To run the server:
docker-compose up
To connect to the server, run:
python client/client.py -n $nickname -u $username -f $fullname
Nickname, username, and fullname must be supplied at invocation.
Current support commands:
- QUIT - Quit the server
- NICK - Change or set nickname
- JOIN - Join a channel
- PRIVMSG - Send a private message to another user
- PART - Leave a channel
- LIST - List all channels
- NAMES - List of users
- TOPIC - Send a message to a channel or create it if it doesn't exist
All server source code is contained with src/server/
and client interface is contained in
client/
.
From the root directory:
Tests and linting:
tox
Generated test reports are located in reports/
.
Pylint rc file located utils/pylint.rc
.
To run the Black formatter:
tox -e format
Formatter is run separately to allow for CI/CD purposes. Allows automated CD to run tox unittests and linting check without running a Black formatting pass.
Github actions workflow is located in .github/workflows
. Runs a tox build on push and pull requests.
Status badge is displayed on this README.