prismarine-chat
prismarine-chat copied to clipboard
A parser for a minecraft chat message
Context at #103
**Describe the bug** Every time the bot receives chat, whether from the chat automation of the bot itself or other players, the bot crashes. **To Reproduce** Steps to reproduce the...
%
/tellraw bot_username "%" crashes the bot.
While testing `fromString` in 1.19 (vanilla) I noticed the formatting isn't reset Example string `'&cSome &rSample &aText'` Output: ```javascript { text: 'Some', color: 'red', extra: [{ text: 'Sample', color: 'reset',...
The `toMotd` method of `ChatMessage` uses `§#rrggbb` notation for hex colors, which is non-standard. When `§#123456a` is rendered by the notchian client, it appears as `123456a` (because the character after...
Commit https://github.com/PrismarineJS/prismarine-chat/commit/feb7d1f668f04690385ff56ea32cf81fa8f27dfd broke type definitions for prismarine chat. All typescript projects using `ChatMessage` are failing to compile on prismarine-chat version 1.7.x. 1.6.x works fine.
* easy examples * hard examples * crashing examples And benchmark various implementation Probably there is a trade off between parse everything and never crash that we can propose to...
Calling `loader(mcversion)` twice with different versions returns the same `ChatMessage` instance, using the last `mcVersion` for both instances. Instead, it should remember the `mcVersion` passed to the loader. [relevant source...
Certain commands crash the bot on an Aternos Spigot Server when doing `msg.toAnsi()`, for instance `setworldspawn` and `effect`. Error Message: ``` TypeError: [sprintf] expecting number but found string at sprintf_format...
vanilla tricky messages but also maybe spigot and paper ones (public servers)