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. Additionally, is there any way to add cool downs to individual chat triggered messages?
     
  2. Possibly in a future release.
    [DOUBLEPOST=1494737779][/DOUBLEPOST]
    I will likely add regex support in a future version, which will allow you to do this.
     
  3. I would VASTLY appreciate the addition of this, I've got a regex code that I used in RustAdmin for doing this, but I'd much rather be able to do it in your plugin instead so I don't need to leave RustAdmin on all the time. The individual cooldown isn't as big of a deal to me, but it's still a nice little addition if you ever find yourself wanting to work on it. ;)
     
  4. Installation:
    Your bot can just be dropped in and loaded, which will generate configuration files for you.
    :) This is my configuration after that simple installation:
    Code:
    {
      "ChatDisplayName": "<color=#00FF00>[Bot]</color>",
      "BotCooldownInSeconds": 15.0,
      "BotChatDisplaySteamId": "1",
      "TimedMessages": [],
      "AutomatedResponses": []
    }
    :(

    Can I use as Bot icon my Steam Group Avatar if I can get groupID64?
     
    Last edited by a moderator: May 16, 2017
  5. I don't think group avatars work. It has to be a steam user profile ID64. This is a limitation of Rust :(
     
  6. I'll try it.
    steamcommunity.com/groups/<your group name>/memberslistxml/?xml=1
    Group ID is here - second line: <groupID64><your group ID></groupID64>
     
  7. I can nearly guarantee this won't work, but by all means, try it.
     
  8. It'a alive! Works well))
     
  9. How do I make it compatible with better chat?
     
  10. How to do it compatible with BetterChat pls?
    [DOUBLEPOST=1499527673][/DOUBLEPOST]
    Yeah , need it too
     
  11. Any chance you could post a working snippet (and what file should be modified) that illustrates how to add this? (Sorry, mostly new to a fair bit of this.)
     
  12. 1. First you have to change URL of your group steamcommunity.com/groups/<your group name>
    to steamcommunity.com/groups/<your group name>/memberslistxml/?xml=1
    For example: Steam Community :: Group :: Facepunch ---> http://steamcommunity.com/groups/facepunch/memberslistxml/?xml=1
    2. Look for second line: <groupID64>103582791429521464</groupID64> 103582791429521464 is steam group ID
    3. Copy and paste group steamID in config file:
    Code:
      "BotChatDisplaySteamId": "103582791429521464"
    4. Enjoy Custom icon in chat:
    upload_2017-7-13_11-7-2.jpeg
     
  13. What do you mean? My server use BetterChat and ChatBot work well. Look pic in previos post.
     
  14. When I active private autoresponses, all players can still see the messages on BetterChat
     
  15. Thanks for taking time out to post this. Much appreciated. I'll have to give this a go later.
     
  16. Oh... I'm don't check it... Maybe has some thing.
     
  17. Can you please update this mod to incorporate the ResourceID like the example below:

    [Info("AutoBroadcast", "Wulf/lukespragg", "1.0.8", ResourceId = 684)]

    so that the mod will work with mods like Updater - Updater | Oxide

    This would really help admins keep your mod updated.
     
  18. config missing everything , nothing like whats shown in description .
     
  19. Hmm could do with some help, I use multiplay servers and added this addon just like any other. I have left the json file untouched but when I go on to the server to test it doesnt seem to be working, there are no timed messages and when I try typing "orthissingleword" nothing happens. any help would be appreciated.
     
  20. its not working for me .

    Code:
    Loaded plugin Smart Chat Bot v1.5.0 by i_love_code
    Failed to initialize plugin 'SmartChatBot v1.5.0' (JsonSerializationException: Unexpected end when deserializing object. Path 'AutomatedResponses[0].TriggerWordSets', line 32, position 7.)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Object currentObject, System.String message) [0x00000] in <filename unknown>:0
    Previous version of plugin failed to load: SmartChatBot
    Code:
    Oxide Version: 2.0.3440
    Listing 35 plugins:
      01 "AdminRadar" (4.1.1) by nivex (2.87s) - AdminRadar.cs
      02 "AutoDoors" (3.1.2) by Wulf/lukespragg (0.29s) - AutoDoors.cs
      03 "Automatic Build Grades" (0.0.18) by AlexALX (0.15s) - AutoGrades.cs
      04 "Better Chat" (5.0.12) by LaserHydra (2.74s) - BetterChat.cs
      05 "BradleyControl" (0.1.7) by Mattparks (1.62s) - BradleyControl.cs
      06 "Build" (1.1.8) by Reneb & NoGrod (12.02s) - Build.cs
      07 "Building Grades" (0.3.11) by bawNg / Nogrod (0.00s) - BuildingGrades.cs
      08 "Clans" (0.1.4) by k1lly0u (0.03s) - Clans.cs
      09 "Clan Tags" (0.1.0) by GreenArrow (0.00s) - ClanTags.cs
      10 "Crafting Controller" (2.4.7) by Mughisi (0.18s) - CraftingController.cs
      11 "Death Notes" (5.2.12) by LaserHydra (2.40s) - DeathNotes.cs
      12 "Friends" (2.2.4) by Nogrod (0.05s) - Friends.cs
      13 "Gathering Manager" (2.2.4) by Mughisi (0.04s) - GatherManager.cs
      14 "HeliControl" (1.2.3) by Shady (2.22s) - HeliControl.cs
      15 "HeliRide" (1.1.11) by ColonBlow (9.40s) - HeliRide.cs
      16 "ImageLibrary" (2.0.6) by Absolut & K1lly0u (1.20s) - ImageLibrary.cs
      17 "LustyMap" (2.1.31) by Kayzor / k1lly0u (1.25s) - LustyMap.cs
      18 "Infinite Ammo" (1.2.3) by Mughisi (0.04s) - InfiniteAmmo.cs
      19 "InfoPanel" (0.9.5) by Ghosst / Nogrod (24.39s) - InfoPanel.cs
      20 "Instant Smelt" (1.0.0) by Serenity (0.91s) - InstantSmelt.cs
      21 "Kits" (3.2.9) by Reneb (0.43s) - Kits.cs
      22 "NTeleportation" (1.0.21) by Nogrod (2.27s) - NTeleportation.cs
      23 "PrivateMessage" (2.0.2) by Nogrod (0.74s) - PrivateMessage.cs
      24 "QuickSmelt" (3.0.2) by Wulf/Fujikura (0.69s) - QuickSmelt.cs
      25 "RemoveAAA" (0.4.6) by Tuntenfisch (0.25s) - RemoveAAA.cs
      26 "RemoveDefaultRadiation" (0.1.0) by k1lly0u (0.15s) - RemoveDefaultRadiation.cs
      27 "RemoverTool" (4.1.9) by Reneb (0.36s) - RemoverTool.cs
      28 "SaveAlerter" (1.0.0) by PsychoTea (0.03s) - SaveAlerter.cs
      29 "SkipNightVote" (0.1.4) by k1lly0u (0.07s) - SkipNightVote.cs
      30 "Stack Size Controller" (1.9.6) by Canopy Sheep (0.08s) - StackSizeController.cs
      31 "TankCommander" (0.1.33) by k1lly0u (56.04s) - TankCommander.cs
      32 "Vanish" (0.3.7) by Wulf/lukespragg (9.49s) - Vanish.cs
      33 "Wounded Screams" (2.1.4) by Skipcast (0.96s) - WoundedScreams.cs
      34 "Smart Chat Bot" (1.5.0) by i_love_code (0.00s) - SmartChatBot.cs
    [Smart Chat Bot] ----------------------------------------------
    [Smart Chat Bot]           SmartChatBot - i_love_code         
    [Smart Chat Bot] ----------------------------------------------
    Failed to call hook 'DebugConsoleCommand' on plugin 'SmartChatBot v1.5.0' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.SmartChatBot.PrintPluginInfo () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmartChatBot.DebugConsoleCommand (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmartChatBot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0