This project allows you to connect to the underground minecraft chat, read messages, register and authorise users, send messages.
pip install -r requirements.txt
Create .env file and set the following environmental variables, if you don't want to use default values:
Environmental | Description |
---|---|
HOST |
hostname to listen chat |
READ_PORT |
port for reading messages from the chat |
SEND_PORT |
port for sending messages to the chat |
HISTORY_PATH |
a path to write chat history |
AUTH_TOKEN |
token that authorize user in chat |
NICKNAME |
your alias in chat |
TIMEOUT_EXPIRED_SEC |
expired time in sec for a request |
SERVER_PING_FREQUENCY_SEC |
time in sec between requests to a server |
python main.py
python main.py -H minechat.dvmn.org -P 5050 -N my_nickname