MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.62k stars 393 forks source link

How do I recognise coloured text using the autoresponder? #1966

Closed timotrocks closed 2 years ago

timotrocks commented 2 years ago

Prerequisites

Console Client Version

Latest

Describe your problem

Hello! I am trying to make a simple welcomer bot for my housing in hypixel. Right now, it does not respond to coloured text. The join text is $u &ehas entered the world. Also, there is no colon after the $u but the username is a different colour from "has entered the world" $u is the username, &e is yellow and $u can be any colour, depending on the player's rank. I want the bot to autorespond a custom message e.g. Hello, $u! Welcome to the housing!

Suggest a possible solution

I could do one response for every rank (colour). Idk if this is a function that I'm too dumb to know about or it is not a function but how do I make the bot recognise coloured text?

Attach screenshot here (If applicable)

N/A

Minecraft Version

1.8

Device

Desktop

Operating System

Windows

milutinke commented 2 years ago

For now there is no possibility of this, because the AutoRespond chat bot strips out the colors from the text, however we could add a setting for telling the bot not to strip colors.

milutinke commented 2 years ago

Implemented.