AutoBot
AutoBot
About.png


With this plugin, you can talk to a Cleverbot with advanced features.
It's lots of fun for everyone on the server!

Features:
  • Custom answers for custom questions (regex supported)
  • Anti-advertisment checking (regex supported)
  • Custom name for calling auto (regex supported)
  • Custom reply format
  • Configurable sound to play when auto replies

Commands.png


/autobot reload
autobot.reload
Reloads the configuration.

/autobot blocklatest
autobot.blocklatest
Automagically adds the last thing auto said to the blocked list. (see configuration)

/autobot debug
autobot.debug
Any time you have a problem with this plugin, tell me the problem and message me the link that this outputs.

Removing the permission "autobot.message" (enabled by default) will make AutoBot ignore the player.

Configuration.png

Code (Text):

#############################
# AutoBot Configuration
# Copyright 2015 Techdoodle
#############################

Sound:
# The sound played when auto speaks
# Make sure it's one of these: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
sound: item_pickup
volume: 0.5
pitch: 0.5

# AutoBot's prefix when he speaks
Prefix: '&8[&4AutoBot&8] &6Auto&r> '

# If auto's response contains any of these, it will be blocked
# These support regex
BlockedMessages:
- 'cleverbot'
- 'app'

# If auto doesn't have an answer in the "Questions" section of configuration (see below), he will respond with the answer given
DisableCleverBotAnswer: false
DisableCleverBotMessage: 'Sorry, I dont have an answer for that.'

# If this is true and there is only one player online, AutoBot will ignore the CheckFor and answer every chat message
NoNameWhenSinglePlayer: false

# Any of these will trigger a response from auto
# These support regex
CheckFor:
- 'hey auto, '
- 'auto, '
- ' auto'
- 'auto '

# Custom questions
# If auto is asked one of these, he will respond with the appropriate answer
# These all support the effects and placeholders described on the plugin page
Questions:

# Put the question you want auto to respond to for the first part
'where am I':
# If this is set to true, auto will only respond if the message contains one of the "CheckFor" elements (see above)
RequiresAuto: false
# If there are many answers, auto will pick one at random
# These can use the placeholders from this plugin: http://www.spigotmc.org/resources/multireplacements.5117/
Answers:
- '{username}, you are at x: {blockx} y: {blocky} z: {blockz} in the {world} world.'

# Here's an example of auto running a command
'make it sunny':
RequiresAuto: true
Answers:
- '<script>server.runCommand("sun {world} sun");</script>The weather is now sunny in {world}.'

# To use regex, put a "\E" in front, and a "\Q" at the end.
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:plus|\+|added to)\s*((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>%match(1)% + %match(2)%</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:times|\*|multiplied by|x)\s*((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>%match(1)% * %match(2)%</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:minus|-|subtracted from)\s*((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>%match(1)% - %match(2)%</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:divided by|\/|over)\s*((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>%match(1)% / %match(2)%</script>'
\E(?:what's|whats|what is|find|what)\s*(pi|pie|π|TT)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.PI</script>'
\E(?:what's|whats|what is|find|what)\s*a*\s*random\s*(?:number|digit)\s*(?:from)*\s((?:\d\(dot)*)+)\s*(?:to|-)\s*((?:\d\(dot)*)+)*\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.floor((Math.random() * %match(2)%) + %match(1)%); </script>'
\E(?:what's|whats|what is|find|what)\s*(?:the)*\s*(?:square root|sqroot|sqrt)\s*(?:eek:f)*\s((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.sqrt(%match(1)%)</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:squared|square|times itself|multiplied by itself)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.pow(%match(1)%, 2)</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:cubed|cube)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.pow(%match(1)%, 3)</script>'
\E(?:what's|whats|what is|find|what)\s*((?:\d\(dot)*)+)\s*(?:to the power of|\^)\s*((?:\d\(dot)*)+)\Q:
RequiresAuto: false
Answers:
- 'That would be <script>Math.pow(%match(1)%, %match(2)%)</script>'

PLACEHOLDERS
http://plugins.darkender.com/placeholders/

EFFECTS
You can use these effects in scoreboard titles and lines.

Is there something that you want in this plugin that it doesn't have?
Click here!


By purchasing this plugin, you agree to these terms.
BlackSpigot General Chat
Rules Help Users
    KingGio243 @ KingGio243: Could someone please leak "Minerals Pack vol.2"? I've seen its a very requested resource and I...
    Top