- Saved searches
- Use saved searches to filter your results more quickly
- License
- ewpratten/mchat
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- MChat
- Installation
- From PIP
- From Source
- Usage
- FAQ
- Are colors configurable?
- What Minecraft versions are supported?
- Screenshots
- pymchat 1.0
- Навигация
- Ссылки проекта
- Статистика
- Метаданные
- Сопровождающие
- Классификаторы
- Описание проекта
- PyMChat
- Installation
- Usage
- Reading chat messages
- Sending chat messages
- Message Objects
- Chat Object
- Saved searches
- Use saved searches to filter your results more quickly
- License
- joodicator/mcchat
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
ewpratten / mchat Public archive
A console chat client for most Minecraft server versions
License
ewpratten/mchat
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A console chat client for most Minecraft server versions. This project is a combination of @ammaraskar’s PyCraft client library, and @willmcgugan’s rich text library for Python.
# Install PyCraft python3 -m pip install https://github.com/ammaraskar/pyCraft.git # Install MChat python3 -m pip install mchat
To install from source using the Poetry build tool and pyenv, clone this repository, then run:
pyenv install 3.9.0 pyenv local 3.9.0 poetry install
MChat can be run as mchat if installed from PIP or as poetry run python3 -m mchat if running from the GIT repo.
usage: mchat [-h] [-p PORT] [-u USERNAME] [-v VERSION] server_address A console chat client for most Minecraft server versions positional arguments: server_address IP address of a Minecraft server optional arguments: -h, --help show this help message and exit -p PORT, --port PORT Minecraft server port (default: 25565) -u USERNAME, --username USERNAME Minecraft username or email -v VERSION, --version VERSION Client -> Server protocol version to use (default: 1.16.4)
You will be prompted for a username (if not passed as an argument), and password when running the program.
No. Terminal colors are not directly configurable from this program, as server-sent formatting data is fed directly into the rich text formatter. Your terminal emulator may allow you to customize your pallette though.
What Minecraft versions are supported?
Anything supported by PyCraft. Entering an invalid version when running mchat will tell you what is supported by the version of PyCraft you have installed. For example, this is the result at the time of writing:
$ mchat -v 0.0.0 example.com 0.0.0 is not a valid Minecraft version. Versions from 1.7.2 to 20w48a are allowed.
You can update PyCraft from PIP to pull in new version support as needed.
MChat
A console chat client for most Minecraft server versions. This project is a combination of @ammaraskar’s PyCraft client library, and @willmcgugan’s rich text library for Python.
Installation
From PIP
python3 -m pip install https://github.com/ammaraskar/pyCraft.git python3 -m pip install mchat
From Source
To install from source using the Poetry build tool and pyenv, clone this repository, then run:
Usage
MChat can be run as mchat if installed from PIP or as poetry run python3 -m mchat if running from the GIT repo.
usage: mchat [-h] [-p PORT] [-u USERNAME] [-v VERSION] server_address A console chat client for most Minecraft server versions positional arguments: server_address IP address of a Minecraft server optional arguments: -h, --help show this help message and exit -p PORT, --port PORT Minecraft server port (default: 25565) -u USERNAME, --username USERNAME Minecraft username or email -v VERSION, --version VERSION Client -> Server protocol version to use (default: 1.16.4)
You will be prompted for a username (if not passed as an argument), and password when running the program.
FAQ
Are colors configurable?
No. Terminal colors are not directly configurable from this program, as server-sent formatting data is fed directly into the rich text formatter. Your terminal emulator may allow you to customize your pallette though.
What Minecraft versions are supported?
Anything supported by PyCraft. Entering an invalid version when running mchat will tell you what is supported by the version of PyCraft you have installed. For example, this is the result at the time of writing:
$ mchat -v example.com is not a valid Minecraft version. Versions from to 20w48a are allowed.
You can update PyCraft from PIP to pull in new version support as needed.
Screenshots
pymchat 1.0
A Simple and easy-to-use Python Library to read and interact with Minecraft’s Chat in real time.
Навигация
Ссылки проекта
Статистика
Метаданные
Лицензия: GNU General Public License v3 (GPLv3)
Требует: Python >=3.6
Сопровождающие
Классификаторы
Описание проекта
PyMChat
A Simple and easy-to-use Python Library to read and interact with Minecraft’s Chat in real time.
Installation
Usage
Reading chat messages
This sample output was taken from a real server.
JohnRockefailure has joined Senseimasterman9 has joined Welcome Steve Senseimasterman9 to the server! < Investor *Blist> Welcom < Griffin *Jay> W e l c o m e ! E n j o y y o u r s t a y a t S a f e S u r v i v a l < Event Staff *Enelis> o-o < Griffin *Jay> oof < Veteran Parkemon20000> thats. not normal JohnRockefailure has left < Phoenix *Kelp> Gn all
Sending chat messages
Using this method will briefly attempt to locate a Minecraft Window, open the chat, send the message, and then switch back to the previous active window. A MinecraftWindowNotFoundError will be thrown if a Minecraft Window isn't found.
Message Objects
Content Property: Holds the content of a message. It represents exactly what the user sees, without colours.
ID Property: An unique number for the message, for the current session. This helps distinguishing between messages effectively.
Date Property: The date of when the message was sent. It follows the format from the latest.log file’s date.
Chat Object
get_history | Limit defaulted to 100, gets the chat messages history
send | Sends a message to the chat.
Default_Logs_Path Property: Can be altered, defines the location of the latest.log file. Defaults to \.minecraft\logs\latest.log
Chat_Key Property: Can be altered, defines the key that triggers the text chat on minecraft. Defaults to ‘T’.
Window_Name: Can be altered, defines the title of the window that the Minecraft Client launches as. Defaults to «Minecraft»
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A simple Minecraft chat client (deprecated; use mcchat2)
License
joodicator/mcchat
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A simple Minecraft chat client written in Python 2. Connects to a Minecraft server and relays chat messages over standard input and output. It is suitable as a language-agnostic modular component of Minecraft chat bots or chat clients.
Notice: this project is no longer being developed, as it has been deprecated in favour of https://github.com/joodicator/mcchat2.
- https://github.com/JosephCrowe/McClientLib (possibly: prtc_74 branch)
- https://pypi.python.org/pypi/EventManager (required by McClientLib)
- https://pypi.python.org/pypi/PyNBT (required by McClientLib)
- https://pypi.python.org/pypi/pycrypto (required by McClientLib)
About
A simple Minecraft chat client (deprecated; use mcchat2)