AutoResponse
AutoResponse
Description:AutoResponse is an easily configurable alternative to answering the same user questions over and over.
One has the option to add either an exact trigger, which will scan user messages for an exact phrase, or add the default trigger which will scan each message for key words.
AutoResponse is equipped with a number of actions which you can use in your responses, such as %kick%, %blind% and %mobattack%. Numerous actions can be used per response, all response actions can be used in conjunction with each other, and the normal text response still applies.
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server
Commands:
• /AutoResponse [reload/help/actions] - View menus / reload config
• /Triggers [-e] - List triggers
• /AddTrigger [-e] - Add a trigger
• /DelTrigger [-e] <#> - Delete a trigger
Adding a trigger:
To add a trigger, the format is as follow:
• /addtrigger This is my trigger > %kick% and this is a kick
Now, when a user says a sentence which contains all the words in the trigger, it will execute the response.
In this case, the auto-responder will kick the user with the kick message 'and this is a kick' Alternatively, put actions like %kick% at the end of your response if you'd like the autoresponse to say something first.
Example: /addtrigger This is my trigger > How's this for a response? %slay%
Reponse Actions:
• %servercmd% - Execute a command as console (no /)
• %playercmd% - Execute a command as player (no /)
• %kick% - Kick the player
• %ban% - Ban the player
• %slay% - Kill the player
• %shock% - Shock the player
• %ignite% - Ignite the player
• %mobattack% - Assasinate the player
• %blind% #s - Blind the player for time specified [m/s]
• %confuse% #s - Confuse the player for time specified [m/s]
• %poison% #s - Poison the player for time specified [m/s]
• %message% <message> - Send the user a private message
• %broadcast% <message> - Broadcast a message to the server
• %player% - Will always be replaced with the player's name
Configuration:
PublicResponse: Broadcast response to server or just player
HideTrigger: Hide the sentence containing the trigger
ResponsePreface: Format how you wish the response to appear
Permissions:
AutoResponse.menu - View the menu/s
AutoResponse.add - Add triggers
AutoResponse.list - List triggers
AutoResponse.delete - Delete triggers
AutoResponse.exempt - Exempt from triggering responses
Thankyou for your support! :D Change-Log:
0.1.5
- Fixed NPE if /deltrigger <#> is beyond the range of triggers
- Added short delay to response (half a second)
- Updated ServerCmd/PlayerCmd/Ban/Kick to allow a response before instance of %action% <actions parameter>
0.1.4
- Added colour & formatting to responses
- Added HideTrigger to config
- Added %poison% to response actions
- Changed colour codes to conform to minecraft colour codes standard
0.1.3
- Fixed ar/autoresponse alias
0.1.2
- Strip punctuation from standard (not exact) triggers
- Addded %shock% to actions
0.1.1
- Updated for 1.3
0.1
- Initial Creation
-
View User Profile
-
Send Message
Posted Jun 21, 2015Please add a setting to remove autoresponse.extempt, because all OP's on my server automatically have it, and I don't want that. Please fix soon.
-
View User Profile
-
Send Message
Posted Mar 28, 2015Once in a while autoresponse will just keep spamming the server with the same response over and over with no explainable reason.
-
View User Profile
-
Send Message
Posted Aug 10, 2014Any chance you could add a feature :< Random Messaging. So the server isnt so bland, you should be able to add the same trigger twice and it will give it a 50/50 chance to pick the triggers. For example:
/addtrigger This is a trigger < %kick% and this is a kick /addtirgger This is a trigger <%ban% and I'm feeling mean today
Users wold have a 50/50 chance between being banned or being kicked. Possible to add in the future? xP
-
View User Profile
-
Send Message
Posted Apr 4, 2014@Melonking
Use the exact tirgger
-
View User Profile
-
Send Message
Posted Mar 17, 2014Errors! Also it would be great if you could set it up to allow ' in replies, im sure thats the cause.
-
View User Profile
-
Send Message
Posted Jan 8, 2014Will the 1.7.2 update continue to work with 1.6.4?
-
View User Profile
-
Send Message
Posted Jan 4, 2014How do I change between the option of exact phrase and keywords ? :/
-
View User Profile
-
Send Message
Posted Dec 23, 2013@jadyha
Works fine with 1.7.2.
What bug fixes are you referring to?
-
View User Profile
-
Send Message
Posted Dec 15, 2013An update with bug fixes and 1.7.2 support would be great. Or you could share the code and let us take on AutoResponse. Either way great plugin. I would hate to see it out of date.
-
View User Profile
-
Send Message
Posted Oct 21, 2013@Odiumxxx
Correct thanks! :)
-
View User Profile
-
Send Message
Posted Oct 20, 2013@TheOnlyRealTGS
You've edited the StorageConfig.yml so that the number of triggers no longer matches the number of responses.
Open StorageConfig.yml and remove the extra trigger/response or delete StorageConfig.yml altogether and stat with a fresh version.
-
View User Profile
-
Send Message
Posted Oct 19, 2013This errors spams my console: http://pastebin.com/6eWbUZ5k
-
View User Profile
-
Send Message
Posted Oct 19, 2013Great plugin :)
-
View User Profile
-
Send Message
Posted Sep 16, 2013For some reason its not working. The commands in game work but when i try /addtrigger Hello > Hello, it wont work. please help. :(
-
View User Profile
-
Send Message
Posted Aug 27, 2013Would you consider adding a small boolean method that would allow me to check if a string contains a key word or phrase for AutoResponse? We use AutoResponse in our server alot, and recently we've also started using the Chester chatbot to add some character to the responses. Thing is, sometimes people say stuff thats a trigger for autoreponse and also for chester, so our bot answers twice. I'd like to be able to stop that. (preferably by canceling chesters chat if autoresponse has a trigger for it)
-
View User Profile
-
Send Message
Posted Jul 18, 2013@ViscousSummer88
to set a exaxct trigger like '!hi' use an exact trigger.
Eg: /addtrigger -e !Hi > Hello!
@ViscousSummer88
Not sure about the mechanics of a 50/50 response, will look into it if I've time.
-
View User Profile
-
Send Message
Posted Jul 14, 2013Also perhaps an option that if you set a trigger like - !hi it will reply. Meaning they MUST type that ! for the bot to pick it up?
-
View User Profile
-
Send Message
Posted Jul 13, 2013Would it be possable to add something like a 50/50 or some kind of percentage chance to say something for example. If someone said something, it picks that up and then on a percentage scale it decides which reply related to what key words were mentioned it replies.
Just for an example: do you love me? Can choose from: No, Yes, So much
-
View User Profile
-
Send Message
Posted Jun 25, 2013I don't know why every server doesn't use this plugin! Epic Do you have a donate button i can click on?
-
View User Profile
-
Send Message
Posted Jun 12, 2013Great mod, I've been building a sever, and just got to configuring this mod, absolutely great !