How to get the proper answers PER chat response?

So... Im not understanding at all how this plugin works... I thought I did... But it just simply goes back and forth, or to the next one (in this case since I only have 2 sentences)

How do I get it, to where someone types said word, or sentence, and it respondes with THE apporopriate one? Rather than just moving to the next response? Forgive me for my misunderstandings... 

Any help is greatly appreciated, thanks.

 

.json Code:
{
"Chat Prefix": "<color=#787FFF>Bot </color>",
"Show Chat Prefix": true,
"Bot Icon (SteamID)": 0,
"Cooldown Between Auto Responses For User": "10s",
"Global Cooldown Between Auto Responses": "2s",
"Use Default Chat (0), Chat Plus (1), Better Chat (2)": 0,
"Debug": false,
"Allow Multiple Auto Responses": false,
"Minimal Time Between Message And Answer": 1.0,
"Maximal Time Between Message And Answer": 3.0,
"Welcome Message": [
"Welcome, {name}!",
"Hello, dear {name}!",
"Hello, {name}! Your IP: { ip }"
],
"Welcome Message Enabled": false,
"Joining Message": [
"Welcome, {name} ({id}, { ip })!",
"Hello, dear {name} ({id}, { ip })!",
"{name} came from {country} ({countrycode})"
],
"Leaving Message": [
"Bye, {name} ({id}, { ip })!\nReason: {reason}",
"{name} ({id}, { ip }) left the game. Reason: {reason}",
"{name} from {country} ({countrycode}) just left the game!"
],
"Joining Message Enabled": false,
"Leaving Message Enabled": false,
"Show Joining Message To Player That Joined": false,
"Show Leaving Message To Player That Left": false,
"Auto Messages": [
{
"Permission": "smartchatbot.messages",
"Message Frequency": "5m",
"Auto Messages": [
{
"Is Enabled": true,
"Message": "Do not mind, I am just a stupid bot."
}
]
}
],
"Auto Responses": [
{
"Permission": "smartchatbot.response",
"Auto Responses": [
{
"Is Enabled": true,
"Remove Message From Sender": false,
"Send Response For Everyone (true) or Only For Sender (false)": true,
"Triggers": [
{
"Percentage Of Contained Words": 0.75,
"Regex Enabled": true,
"Words": [
"what",
"is",
"the",
"website?",
"what",
"is",
"the",
"discord?"
]
}
],
"Answers": [
"SFUAIM.PRO",
"The Website Is: MY WEBSITE",
"The Discord Is: MY DISCORD"
]
}
]
}
]
}

Sorry for the formatting... Not sure how it works here?

 

Thanks again for any help.

Nvm Still need help with this please?

you have to create a separate auto response. at the moment you are putting all words in the same list, which means all 8 words apply to all responses specified (so it selects a random response).

Thanks for the response @misticos!I am a big fan of your plguins, and am glad you took this one over.

With that said, would it be to much to ask for an example? 

If so, ill try implementing what you said, but prior to your response, I actually believe ive done so? Hereis my example as of currently... And for some reason only " website" works lol?

 

.json code:

{
  "Chat Prefix": "<color=#787FFF>Bot </color>",
  "Show Chat Prefix": true,
  "Bot Icon (SteamID)": 0,
  "Cooldown Between Auto Responses For User": "10s",
  "Global Cooldown Between Auto Responses": "2s",
  "Use Default Chat (0), Chat Plus (1), Better Chat (2)": 0,
  "Debug": false,
  "Allow Multiple Auto Responses": false,
  "Minimal Time Between Message And Answer": 1.0,
  "Maximal Time Between Message And Answer": 3.0,
  "Welcome Message": [
    "Welcome, {name}!",
    "Hello, dear {name}!",
    "Hello, {name}! Your IP: { ip }"
  ],
  "Welcome Message Enabled": false,
  "Joining Message": [
    "Welcome, {name} ({id}, { ip })!",
    "Hello, dear {name} ({id}, { ip })!",
    "{name} came from {country} ({countrycode})"
  ],
  "Leaving Message": [
    "Bye, {name} ({id}, { ip })!\nReason: {reason}",
    "{name} ({id}, { ip }) left the game. Reason: {reason}",
    "{name} from {country} ({countrycode}) just left the game!"
  ],
  "Joining Message Enabled": false,
  "Leaving Message Enabled": false,
  "Show Joining Message To Player That Joined": false,
  "Show Leaving Message To Player That Left": false,
  "Auto Messages": [
    {
      "Permission": "smartchatbot.messages",
      "Message Frequency": "5m",
      "Auto Messages": [
        {
          "Is Enabled": true,
          "Message": "Do not mind, I am just a stupid bot."
        }
      ]
    }
  ],


  "Auto Responses": [
    {
      "Permission": "smartchatbot.response",
      "Auto Responses": [

        {
          "Is Enabled": true,
          "Remove Message From Sender": false,
          "Send Response For Everyone (true) or Only For Sender (false)": true,
          "Triggers": [
            {
              "Percentage Of Contained Words": 0.75,
              "Regex Enabled": true,
              "Words": [
                "commdans?",
                "commands"
              ]
            }
          ],
          "Answers": [
            "Check Out The Commands By Typing '/info'   (without quotes in chat) ",
            "Check Out The Commands By Typing '/info'   (without quotes in chat) "
          ]
        },


        {
          "Is Enabled": true,
          "Remove Message From Sender": false,
          "Send Response For Everyone (true) or Only For Sender (false)": true,
          "Triggers": [
            {
              "Percentage Of Contained Words": 0.75,
              "Regex Enabled": true,
              "Words": [
                "website",
                "Website",
                "Website?",
                "website?"
              ]
            }
          ],
          "Answers": [
            "The Website Is:   WEBSITE HERE",
            "The Website Is:   WEBSITE HERE",
            "The Website Is:   WEBSITE HERE",
            "The Website Is:   WEBSITE HERE"
          ]
        },


        {
          "Is Enabled": true,
          "Remove Message From Sender": false,
          "Send Response For Everyone (true) or Only For Sender (false)": true,
          "Triggers": [
            {
              "Percentage Of Contained Words": 0.75,
              "Regex Enabled": true,
              "Words": [
                "donate",
                "Donate",
                "donate?",
                "Donate?"
              ]
            }
          ],
          "Answers": [
            "You Can Donate At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Donate At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Donate At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Donate At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE"
          ]
        },

        {
          "Is Enabled": true,
          "Remove Message From Sender": false,
          "Send Response For Everyone (true) or Only For Sender (false)": true,
          "Triggers": [
            {
              "Percentage Of Contained Words": 0.75,
              "Regex Enabled": true,
              "Words": [
                "vip",
                "Vip",
                "Vip?",
                "vip?"
              ]
            }
          ],
          "Answers": [
            "You Can Get VIP At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Get VIP At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Get VIP At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE",
            "You Can Get VIP At:   VIP WEBSITE HERE    -    VIPWEBSITE HERE"
          ]
        }


      ]
    }
  ]
}


To my understanding, its an array of objects/dictionaries and each RESPONSE, is of its own entity within the array. BUt this doesnt seem to work properly as well? Any help is appreciated, thanks again!


Merged post

also... WHats the deal with the bot,  "Im just a stupid bot" in chat?? LOL!

Merged post

Anything @misticos?

youre trying to split after ], but instead you should duplicate within [] so after }

Im sorry.... What?

I think I may understand wat you mean, let me try this as I understand it and gert back to you, thanks.
If its not to much trouble in the mean time, maybe show me just a snipet example please?