Questions can use regex! Find out what regex is here.
This plugin is a simple chat bot that will answer users questions without any need of a command.
From version 2.0.0 it now has PlaceholderAPI support.
Example:
Permissions:
- helperbot.* - Gives access to all helperbot commands
- helperbot.set - Allows user to set the bot name
- helperbot.answer - The bot will answer only users with this permission.
- helperbot.reload - Allows to reload the bot config
Commands [helperbot, hb]:
- /hb setname <name>
- /hb reload
This is how the generated config.yml file looks like:
BotName: "&6Helperbot&r:&7"
And this is how the generated questions.yaml looks like:
questions:
-
question: '(?i)How (i|to) spawn'
answer: Try /spawn
# Cooldown is in seconds
cooldown: 5
# If broadcast is true, the cooldown is global, if not, its per-player
# Broadcast true = all players see the bot answer.
broadcast: yes
# You can add this on any question to disable it without removing it from the file.
# disable: yes
# Whether to show the question message or not (user message).
broadcast_question: yes
-
question: '(?i)How are you'
answer: I'm fine thanks :P
cooldown: 5
broadcast: yes
-
# When using regex, it's recommended to use single quotes in yaml to avoid escaping.
question: '(?i)\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'
answer: Please don't share ips!
cooldown: 5
broadcast: no
broadcast_question: no
-
# Remember, to escape a ' you need to repeat it like: ''
# https://github.com/dotmaster/toYaml/issues/1
question: '(?i)(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]'
answer: Please don't share urls!
cooldown: 5
broadcast: yes
You can also change the bot name with a command:
[/CODE]
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta