[CHAT] SimpleAutoReply v0.1 - Forget about answering noob questions! [953]

Discussion in 'Inactive/Unsupported Plugins' started by BreezerFly, Mar 30, 2011.

  1. Offline

    BreezerFly

    SimpleAutoReply - Forget about answering noob questions!
    Version: v0.1
    -Credits to xeology for the idea.

    This is a pretty basic auto reply plugin which was made based on a request.
    It'll look at player's chat messages and then if they match any of the messages it has replies for, it'll answer them (Currently in private).

    Any requests, feedback and such is very welcome! :D

    Features:
    * Automatically answers messages based on a configuration file.
    * Configurable messages/replies.
    * Anti-spam system, with a configurable timeout time. - It'll only answer a message once every timeout seconds.
    * Answers messages in private.
    * Supports substitutions:
    Code:
    @player -> Instead of the player's name
    * "Unlimited" amount of replies.

    <Edit by Moderator: Redacted mediafire url>


    Show Spoiler
    Ideas for future versions/TODO:
    -Tell me what you think

    Configurations:
    * Broadcast answer to all players.
    * Delete the message that asked the question.


    Chat commands (Implement GroupManager/Permissions):
    * reload config
    * add reply
    * remove reply
    * edit reply


    Features:
    * Ignore people with some permission.


    Changelog
    Version 0.1 (30/03/2011) - Confirmed to work on build 560 and 602.
    * Released
     
    Last edited by a moderator: Dec 14, 2016
    AS1LV3RN1NJA and MisanthropX like this.
  2. Offline

    Josh Harwood

    Either this doesn't work on #740, with some of my plugins, or maybe i've set it up wrong... either way HELP D:
    Config:
    Code:
    timeout: 30
    replies:
        default:
            message: .*building.*rights.*
            answer: @[URL='http://forums.bukkit.org/members/player.6564/']Player[/URL] you have to ask an admin.
        default2:
            message: .*can.*t.*move.*
            answer: @[URL='http://forums.bukkit.org/members/player.6564/']Player[/URL] New Member? type /register apassword then type /login s$
        d3:
            message: .*lock.*chest.*
            answer: @[URL='http://forums.bukkit.org/members/player.6564/']Player[/URL] /cprivate works on chests, furnaces, doors, dispencers.
        d4:
            message: .*help.*
            answer: @[URL='http://forums.bukkit.org/members/player.6564/']Player[/URL] if you need admin help, type /modreq <msg>.
    
    plugin list:
    Code:
    05:27:29 [INFO] Plugins: Propaganda CraftBukkitUpToDate SimpleSave WorldEdit EssentialsProtect ModTRS SimpleCensor MessageChanger GlassPlugin Lockette Stats Permissions RealShop BigBrother PerformanceTweaks dynmap PlayerInfo WeatherSync EssentialsSpawn Elevators LWC iConomy EssentialsChat ArrowWall Residence ecoCreature RainbowSheep TimeAnnounce CustomMusic Minequery InvTools BlockCantKeepUpSpam Tombstone CraftIRC MinecartManiaCore xAuth WeatherMan WorldBorder Achievements MobileAdminBukkit mcbans Essentials BlockPaint Honeypot TextPlayer GroupManager Backpack MinecartManiaAutocart
     
  3. Offline

    BreezerFly

    What do you do?
    Please post any error logs, or at least tell me what you do / what doesn't work :)
     
  4. Offline

    fatmarley

    Sorry this isn't working for me either. There are no error msgs...just simply nothing.

    At the moment I am only using the default file that comes with it.

    Has this been updated for 740 or 766?
     
  5. Offline

    BreezerFly

    I will take a look at it, asap.

    This works for the latest development snapshot, b776. And I can't see why it wouldn't work for any builds inbetween. You must be doing something wrong :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  6. Offline

    TheBeast808

    So... Does * work?
     
  7. Offline

    BreezerFly

    Explain?
     
  8. Offline

    GeekPlaya

    Does not work... at all... :(
    Worked on 744. Does not work with default config.

    It registers fine and says "2 responses loaded".

    But if I say: This is a default test.

    It does not reply. Please look into this.
     
  9. Offline

    BreezerFly

    What build are you using? Because it worked pretty well with b776 when I tested it :/
    And I can't fix something if I can't reproduce the error :)
     
  10. Offline

    Sphax

    Is this plugin support special characters? If so, in which format the config file should be encoded?

    It works well when we follow the rules of regex in fact... Great mod ! :D
    But "@player" don't work :
    Code:
    18:20:12 [GRAVE] Could not load 'plugins\SimpleAutoReply.jar' in folder 'plugins':
    while scanning for the next token
    found character @'@' that cannot start any token
     in "<reader>", line 5, column 17:
                answer: @ Player [...]
    (I put a space between @ and Player because the forum don't like it)

    EDIT: It doesn't support special characters like "é" or "ç"... :(
    Also, would it be possible to send/display the autoreply after the player message?
     
  11. Offline

    BreezerFly

    Will look into the @ player when I get time.
    I don't know about those characters - does MC support it?
     
  12. Offline

    Sphax

    Minecraft supports them ingame and some plugins support them in files encoded in UTF8.
     
  13. Offline

    BreezerFly

    Okay, not entirely sure if that works - I guess you've tried it?
    I haven't looked more into encodings and such. I've been busy in school since like, I released this, so haven't been able to do much more than just maintenaince.
     
  14. Offline

    Sphax

    OK. Yes I've tested it and I get an error in the parser if I put some special characters like é or à...
    Hope you'll be able to update it. I like it a lot and the questions are not only for noobs but also advanced players.
     
  15. Offline

    BreezerFly

    -- I don't have time to support this at all anymore, I thought I would get time back. If anyone wants the source code so they can work from it, please message me :)
     
  16. Offline

    ledhead900

    You could take a few ideas form Ircbots maybe ? I think I did see some auto prediction bots for MC at some point.
     
  17. Offline

    BreezerFly

     
  18. Offline

    Elfsovereign

    Would it be able to reply to a statement with a command? Say if you had rules and you had the phrase be "I accept to play by the rules" and then the plugin would respond with /promote (Username) from PermissionsPlus, or would this be too complicated?
     
  19. Offline

    BreezerFly

    Dunno how PermissionsPlus handle commands :eek: Dunno how commands given from other scripts are taken either. But might be... - I don't support this anymore tho :D
     
  20. Offline

    xwyz

    Still working for 953

    Hello again, i have a question for config.

    How can i write multi line answer? Thanks...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  21. Offline

    Multitallented

    Apparently it isn't compatible with certain plugins. It worked for me for a while as I was adding plugins until recently. Now even the default config doesn't get it to work. I'm not going to take the time to find out which plugins though... I'd be happy to help if anyone is still developing though.
     
  22. Offline

    kookster

    can you tell me why:
    "plan" triggers message: .*lag*.
    "fast" triggers message: .*ass*.
     
  23. Offline

    Katuushka

    I'd love this plugin for my creative server! People keep asking what code for certain things are when I have a wall of them... -___- Now I could actually implement the codes into the plugin and not worry about it. Also, is there a way to get the message to work without having to write all the different forms of the word? Like...

    "What is" could also work if it's written like
    "what is, waht is, wat iz, what iz..." etc?
     
  24. Offline

    alexmack929

    Could you add support to change who says it, for example i want the console to say it, and for everyone to see it - so they dont ask the same nooby questions!
     
  25. Offline

    OZ4RK

    Does anyone know if this is still fully functioning on 1337?
    -Thanks
     
  26. Offline

    alexmack929

    @OZ4RK
    Yes, should be.
     
  27. Offline

    OZ4RK

    Any help?
    Code:
    [SEVERE] Could not pass event PLAYER_CHAT to SimpleAutoReply
    java.lang.NullPointerException
        at java.util.regex.Pattern.<init>(Pattern.java:1132)
        at java.util.regex.Pattern.compile(Pattern.java:823)
        at java.util.regex.Pattern.matches(Pattern.java:928)
        at java.lang.String.matches(String.java:2090)
        at tk.breezerfly.SimpleAutoReply.Reply.matches(Reply.java:13)
        at tk.breezerfly.SimpleAutoReply.SimpleAutoReplyPlayerListener.getReply(SimpleAutoReplyPlayerListener.java:58)
        at tk.breezerfly.SimpleAutoReply.SimpleAutoReplyPlayerListener.onPlayerChat(SimpleAutoReplyPlayerListener.java:25)
        at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:295)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:727)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  28. Please Respond; Can you make it so when the player asks the question, it answers them, but their question dosent come up in chat? Thanks.
     
  29. Offline

    wizzy86

    This already happens. It doesn't broadcast it to the world, only to the player in question.
     
  30. Offline

    deimos161

    doesnt seem to be working for me. if I type something in like "where can I buy" which is what I set up in the config nothign is returned to me
     

Share This Page