70CentsApple / ChatTools

Chat Tools 一个 Minecraft Fabric 辅助模组 | A Fabric client-side Minecraft Mod
GNU General Public License v3.0
13 stars 4 forks source link

not a bug but a help guide #42

Closed DaZoZElMoz closed 3 months ago

DaZoZElMoz commented 3 months ago

Bug description

i want to make it when someone in chat says welcome so do i how do i do that

Steps to reproduce

i want to make it when someone in chat says welcome so do i how do i do that

Expected behavior

No response

Actual behavior

No response

Relevant logs

No response

Minecraft version

1.20.4

Mod version

latest

Other information

No response

Check list

AlphaLeoli commented 3 months ago

do u wanna say thanks every time someone says welcome or say welcome every time someone joins or what 😭

DaZoZElMoz commented 3 months ago

i say welcome when someone says welcome its weird ik but its something for the server

70CentsApple commented 3 months ago

img Do you mean something like this?

DaZoZElMoz commented 3 months ago

img Do you mean something like this?

Yes this is what I want thanks the [Ww] means if they say in small or capital it will repeat right

70CentsApple commented 3 months ago

the [Ww] means if they say in small or capital it will repeat right

correct

AlphaLeoli commented 3 months ago

does (?i) work to make it case insensitive?

70CentsApple commented 3 months ago

does (?i) work to make it case insensitive?

idk but you can try

DaZoZElMoz commented 3 months ago

i did it image but its not working like people say welcome and i dont say anything

70CentsApple commented 3 months ago

@DaZoZElMoz Two problems:

  1. The server address is not even matched. You should do it like ".*.berrysmp.net" or "play.berrysmp.net" or "play.berrysmp.net" or something (cases matter). Tip: when the server address is matched, the color should be green but not orange.
  2. It will only respond to literal Welcome or welcome, so if you want to match texts just including these, use .*[Ww]elcome.*
DaZoZElMoz commented 3 months ago

thanks one more thing if like for example 10 people say welcome how do i make it say once only or is that not a feature

70CentsApple commented 3 months ago

thanks one more thing if like for example 10 people say welcome how do i make it say once only or is that not a feature

not a feature, at least for now.