Smart Chat Bot

I send chat messages based on some triggers or time

Total Downloads: 1,856 - First Release: Apr 20, 2017 - Last Update: Jan 2, 2018

5/5, 12 likes
  1. Wulf

    Wulf Community Admin

    The error indicates an issue with your config file.
     
  2. i just used the default configuration in the example with no edits ..
     
  3. i_love_code updated Smart Chat Bot with a new update entry:

    1.6

     
  4. I just wanted to take a moment and suggest how much I appreciate this mod. It's a lot of fun. I try to create situations where the bot is chatting with people lol

    Code:
        {
          "Message": "I am located in New York, USA area. Where are you from?",
          "SendToServer": true,
          "TriggerWordSets": [
            [
              "where",
              "server"
            ],
            [
              "server",
              "location"
            ]
          ]
        },      
        {
          "Message": "It's a small world. I'm from Earth too!",
          "SendToServer": true,
          "TriggerWordSets": [
            [
              "I'm",
              "from"
            ],
            [
              "I",
              "am",
              "from"
            ],
            [
              "I",
              "am",
              "located"
            ],
            [
              "I'm",
              "located"
            ],
            [
              "I",
              "live"
            ],
            [
              "I'm",
              "living"
            ]
          ]
        },        
     
  5. How do I get it to react on words instead of letters?
    I had my bot react to a player because the bot had "hi" and "all" as words, and a player said all and nothing in the chat and the bot activated as hi is part of the nothing
     
  6. I wonder if adding a space after the letters will help ensure it's a word. I haven't tested that.
     
  7. Looks like this is having a bit of a conflict with betterchat, causes the question to be seen even if the answer is only shown to the player when send to server is false.

    Code:
    (19:20:03) | Calling hook OnPlayerChat resulted in a conflict between the following plugins: RustCore - True (Boolean), SmartChatBot (True (Boolean))
     
  8. How can I change the display name from "ChatBot" to something else? I looked in the .cs file and I couldn't find it, maybe I'm missing something.
     
  9. @nimdasys Check your configuration file.

    The default has a property of:

    Code:
    {
      "ChatDisplayName": "<color=#00FF00>[Bot]</color>",
      "BotCooldownInSeconds": 15.0,
      "BotChatDisplaySteamId": "1",
      "TimedMessages": [],
      "AutomatedResponses": []
    }
    You can see the [Bot] display name in that file.
     
  10. @i_love_code Can this be tweaked so that private responses work with betterchat. We're still seeing the question the user asked in chat even though they got a private answer. So they get the info but the playerbase still feels they need to answer them.

    thanks
     
  11. Can't get this to work at all either after reading all the replies. Does the server require a restart after changing the .json file? I didn't try to get rid of BetterChat as that is needed for another plugin I have.
     
  12. Can this please have private responses hiding the question when you have Betterchat.

    thanks
     
  13. i_love_code updated Smart Chat Bot with a new update entry:

    1.7

     
  14. {
    "ChatDisplayName": "<color=#00FF00>[Bot]</color>",
    "BotCooldownInSeconds": 15.0,
    "BotChatDisplaySteamId": "1",
    "IsDebug": true,
    "TimedMessages": [],
    "AutomatedResponses": []
    }
    {
    "ChatDisplayName": "<color=#00FF00>[Chatbot]</color>",
    "BotCooldownInSeconds": 15.0,
    "TimedMessages": [
    {
    "Message": "Your first chat message",
    "InitialCooldown": 0.0,
    "Cooldown": 3.0
    }
    ],
    "AutomatedResponses": [
    {
    "Message": "Your first reply",
    "SendToServer": true,
    "TriggerWordSets": [
    [
    "Hello",
    "You won't",
    "all",
    "these",
    "words"
    ],
    [
    "You are",
    "Who are you",
    "these",
    "words"
    ],
    [
    "orthissingleword"
    ]
    ]
    },
    {
    "Message": "This is a private autoresponse",
    "SendToServer": false,
    "TriggerWordSets": [
    [
    "private"
    ]
    ]
    }
    ]
    }
    [DOUBLEPOST=1514976800][/DOUBLEPOST]I'm sorry, the plug-in doesn't work for me
     
  15. support for regex please!
     
  16. Trying to see when betterchat is triggered, but it never gets triggered!
    Anyhthing broken with it?!
    [DOUBLEPOST=1515458390][/DOUBLEPOST]OnBetterChat never seems to be triggered (server has betterchat installed)
     
  17. Possible to get the betterchat-modified text in "OnBetterChat" hook?? I do some chat modification before it reaches to the chatbot but it seems like chatbot always get the initial chat text (no modifications!)
     
  18. Is there a way to make the white box that shows beside the bot name into an image? I'd like to put our logo there. :)
     
  19. Yes, if you have a SteamGroup or user with that photo you can.

    Code:
    {
      "ChatDisplayName": "<color=#00FF00>[Bot]</color>",
      "BotCooldownInSeconds": 15.0,
      "BotChatDisplaySteamId": "SteamIDhere",
      "TimedMessages": [],
      "AutomatedResponses": []
    }
    
    You would also know this if you read all these post x)

    But here is a pic of mine:
    [​IMG]
     
  20. My config file didn't have the SteamID part ;) problem was fixed 2 days ago. Thanks