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

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

  1. 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

    ShockBuddy

    I got Problems, if type the default messages i get an answer, so!
    But if i modify the Questions or try to add a new one im not able to get a Reply after i Type it in!

    Here what i want to add:

    Code:
    Supply:
            message: .*Was ist SupplySign.*
            answer: Mit SupplySign werden euch unbegrenzt ...
    Wath i make wrong?

    Anyway nice Plugin its useful to autoanswer much asked Questions, Clasic could have something like this, too.
    (How can i build?) You know :D

    Hmmm.... [diamond][diamond][diamond][diamond](+1 [diamond] if this work for me!)

    I have the latest version of CraftBuckit!
     
  3. Offline

    MaMaxGER

    Hey,
    du musst es so machen

    Code:
    Supply:
            message: .*Was *ist *SupplySign.*
            answer: Mit SupplySign werden euch unbegrenzt ...
     
  4. Offline

    ShockBuddy

    Not working, nothing happens!

    Code:
    Supply:
            message: .*Was *ist *SupplySign.*
            answer: Mit SupplySign werden euch unbegrenzt Items zur verf├╝gung gestellt.
    Is there an Character limit in the answer?
     
  5. There probably is a character limit. I don't know it though, it's the limit of the minecraft display itself, so it's pretty long and it'd throw an error.
    It looks fine, and it should say the message when you write "Was ist SupplySign" but can you try making it all lower case?
    You don't necessarily need the ".*" and " *" It just matches any character, or any number of spaces.
    Can you post your whole config file if this doesn't work, together with a log of what happens at server start?
    Thanks :)
     
  6. Offline

    M1sT3rM4n

    Good to see someone taking the initiative to create an autohelp desk plugin.
     
  7. Yeah, so it doesn't have that many features, I'm open to what could be added. I'd also like to know in what order you guys would prefer to have the features I posted on page 1 in the plugin? My time is limited at the moment, so I wont be able to update too much.
     
  8. Offline

    Alex K

    I'm getting this error, CB#677Jenkins.

    Code:
    20:34:13 [INFO] [SimpleAutoReply v0.1]: Timeout set to 30
    20:34:13 [SEVERE] java.lang.Integer cannot be cast to java.lang.String loading S
    impleAutoReply v0.1 (Is it up to date?)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
    ng
            at tk.breezerfly.SimpleAutoReply.DataHolder.loadReplies(DataHolder.java:
    39)
            at tk.breezerfly.SimpleAutoReply.DataHolder.load(DataHolder.java:27)
            at tk.breezerfly.SimpleAutoReply.SimpleAutoReply.onEnable(SimpleAutoRepl
    y.java:24)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:578)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  9. Post your config
     
  10. Offline

    Alex K

    Alrighty, here. Before you ask, my friend says sex randomly, and that's why is says that. Just clarifying. :p
    Code:
    timeout: 0
    replies:
        default:
            message: Sex
            answer: Chris is Gay.
        default2:
            message: .*default.*test.*
            answer: Another example of it... Shouldn't be too hard :D
        3:
            message: sex
            answer: Chris is Gay.
        4:
            message: s3x
            answer: Chris is Gay.
        5:
            message: sex.
            answer: Chris is Gay.
        6:
            message: 53x
            answer: Chris is Gay.
        7:
            message: 5ex
            answer: Chris is Gay.
        8:
            message: 23x
            answer: Chris is Gay.
        9:
            message: 2ex
            answer: Chris is Gay.
        10:
            message: nou
            answer: Die in a fire.
        11:
            message: no u
            answer: Die in a fire.
        12:
            message: How do i get stuff?
            answer: Buy it from the store.
    
         
     
  11. Please replace the numbers, 3456789101112 with strings instead. you can make it something like r2, etc. Just not numbers.
     
  12. Offline

    Alex K

    Oh Alright, Ill go try that, thanks.
     
  13. Offline

    Insanehero

    This plugin won't work for me. It says it enables without any problems in start up, but then when I try one of the default messages it comes with it doesn't work. Would HeroChat overide it possibly?
     
  14. Please tell me what is happening, and also please post your start up log.
    HeroChat might be the case, but I really don't think so. It might be...
     
  15. Offline

    TomSleeUK

    Nice! when will this be updated for 733?
     
  16. Are you sure that it doesn't work now? Cuz I didn't get any errors in the coding environment?
     
  17. Offline

    Skrolan

    ahh ok so i can't use it for something else... i need to use it for iconomy and stuff:( rly bad i thought i could use it for other stuffs..:xDDDD joke
     
  18. You can use it for other things?
     
  19. Offline

    Skrolan

    Yes:p if someone maybe dont know what to build they type / help:xD
     
  20. Offline

    willystylee

    Will this plugin still work with cb#733?
     
  21. I do not see why it shouldn't? Could you test it and report back? :) - I currently can't do it myself. Thanks :)
     
  22. Offline

    ledhead900

    This looks resaonable would not mind auto learning tho.
     
  23. Auto learning in what way? :)
    - I'm currently very busy irl, so haven't been able to do any of the updates I've wanted to do :/
     
  24. Offline

    ledhead900

    Like some sort of auto predection learning, like an AI it watchs the chat and fills in common questions on its own and your common respones to them, So that over time it writes its own dictonary for noobs asking stuff they should have already read about.
     
  25. Would be cool, but it's gonna be hard to actually count the times the same questions have been asked, since, probably, no questions is going to be asked the same way.
     
  26. Offline

    TomSleeUK

    Im not an expert so i didnt know if it would work or not. My serverhost (servercraft) tell their customers to only install plugins for the version of craftbukkit. But i suppose they might still work.
     
  27. Well, that's just to ease their customer support :)
     
  28. Offline

    kahlilnc

    I don't get how the format is suppose to look.
     
  29. Offline

    bradgillap

    This is great, I'm going to set this up tonight. I have a lot of newbies and the mcbot plugin was giving me grief.
     
  30. Here's an example of the format:
    If that doesn't clarify it... Send me your config.
     

Share This Page