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.
Installation:
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
/AutoResponse gives unknown command. But /AR works..
@USM666
triggers work fine, you're doing it wrong.
You say 'try and update' but I suspect you don't know what that means, because there's nothing which requires updating.
The triggers do not work,tried every pattern available. Try to update this to 1.3.2 and 1.4.2.
The best plugin for big servers.
@Snowey1994
I don't think you understand? It's at no point necessary for you to change the source code.
If you want your admins to be able to trigger a reponse, just give them the permission:
That's what it's for.
@Odiumxxx
Oddly enough I found the exempt permission stuff in the PListener.Class and removed it and hey pesto the OP's can talk to it. I have the bot like Siri thing and OP's like randomly having convo's with it.
@Snowey1994
I'd call that a feature, not a problem.
It's much over muchness really.
I designed the autoresposne to take pressure off my server admins, it answers the noob questions so they don't have to.
They already know the answers, so they themselves don't need to be triggering the autoresponse.
However, if for any reason users would like to change that, I've included the exempt permission.
For now, it's not a detriment to performance, but if it continues to confuse users like yourself I'll likely change the public release accordingly.
Thanks for the feedback. :)
There's a problem with operators talking to the bot. OP's get all perms so this: - AutoResponse.exempt Means they can't talk to it. Shouldn't it be - AutoResponse.trigger
So players with the perm can trigger a response when they type something?
@FattyCraft
StorageConfig.yml
@SmAsHXT
Perhaps I could ignore punctuation in normal triggers, but not in 'exact' triggers. I'll look into it and run some tests.
@Snowey1994
I didn't specify the exempt permission, my bad.
@ImRealNow Works fine for me.
Example: /addtrigger does this work > %servercmd% shock %player%
@Odiumxxx
Still having trouble also in your new update it doesn't let OPs talk to it.
with a ? at the end it dosn't work
can i have op <<< gets the proper response,
can i have op? <<<< is ignored,
any ideas?
@Odiumxxx
then it appears to not be working
Please make triggers configurable in config.yml or a separate file called responses.yml.
@ImRealNow
@Snowey1994
The %servercmd% response behaves as you would expect it to.
Whatever comes after %servercmd% will be treated as a console command.
Example: %servercmd% xp %player% 10
How does the %servercmd% work? Like %servercmd%time day SMP or %servercmd%/time day SMP? or Can I have XP > %servercmd%xp %player% 500 ?
I tried some but still no luck.
Would be cool if it could ignore ? ! and .
how do you use the %servercmd% response action?
Love the concept. Would be great for my application if you could have, say:
Plugin looks for "Why is" and "banned" in the same sentence, it responds, so you could fill in the blank with whatever ;)
@xdeathoreox
Ok, so here's the problem you're having, and it may just mean I have to define actions differently.
it's right to put the actions last, however for both the kick and ban actions it's best they come first.
I'm from planetminecraft > %ban% No, you aren't.
This will ban the user with the message "No, you aren't"
I'm from planetminecraft > No, you aren't. %ban
This will ban the user with the message "you aren't %ban%"
I'll put in some further definitions for actions in later versions, to make responses more intuitive.
As for case-sensitive, it's not.
Everything is dropped to lowercase before being compared.
Don't know if it does this for the other triggers but it shows the trigger in the message. Like I have one that response to "I'm from PlanetMinecraft." and it says "Shut up, no you aren't %ban%." When they are banned there are 2 things wrong. One, The word 'shut' isn't there, and two, you can see %ban%.
Also a suggestion, Don't make it case-sensitive. If "I say I'm from planetminecraft." It wont ban me. It just ignores it.