Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codecat/tm-better-chat
A better chat for Trackmania using Openplanet.
https://github.com/codecat/tm-better-chat
maniaplanet openplanet trackmania
Last synced: 6 days ago
JSON representation
A better chat for Trackmania using Openplanet.
- Host: GitHub
- URL: https://github.com/codecat/tm-better-chat
- Owner: codecat
- Created: 2021-09-18T02:56:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T12:13:38.000Z (8 months ago)
- Last Synced: 2024-05-21T13:34:05.388Z (8 months ago)
- Topics: maniaplanet, openplanet, trackmania
- Language: AngelScript
- Homepage: https://openplanet.nl/files/134
- Size: 3.62 MB
- Stars: 21
- Watchers: 4
- Forks: 8
- Open Issues: 36
-
Metadata Files:
- Readme: Readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Better Chat
Complete replacement of the Trackmania in-game chat for [Openplanet](https://openplanet.dev/).![](.github/screenshot.png)
# Features
Better Chat is better in a lot of ways, with features such as:* Built-in emotes
* Easier to read names and club tags
* Right-clicking player names for options (spectate, Trackmania.io profile, block, etc.)
* Highlighting on @ mentions
* Custom chat commands
* Autocompletion for mentions, emotes, and commands
* Blocking & filtering
* Streamer mode to censor some bad stuff# Server controller formatting
When a player with Better Chat connects to a server, the following command is automatically typed into chat:/chatformat json
You may choose to ignore this command, or handle it. Additionally, you should handle `/chatformat text` to reset it back to the default formatting.
When you handle the command and the format is set to json, every (chat) message you output to the chat, should be in a Json format prefixed with `CHAT_JSON:`. Below are some example lines.
CHAT_JSON:{"login":"c5jutptORLinoaIUmVWscA","text":"I'm chatting w/o a nickname!"}
CHAT_JSON:{"login":"c5jutptORLinoaIUmVWscA","nickname":"Nimz|Miss","text":"I'm chatting with a nickname!"}
CHAT_JSON:{"text":"This is a system message."}Additional parameters may be added to Better Chat's display if desired. [Please open an issue](https://github.com/codecat/tm-better-chat/issues/new) if you want Better Chat to display anything from a custom parameter inside of this Json object.
Currently, the following Json object values are handled:
* `login`: The user's login. Only required if this is a chat message from a player. When the login is not provided, it will be displayed as a system message.
* `text`: The text of the message. Required.
* `nickname`: The player's nickname, if set. This is optional.
* `clubtag`: The player's clubtag, if set. This is optional.