Sueta

HelperBot

2.3.2

A chat bot that will answer users questions without any command.

·Plugin

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:
Screenshot from 2019-04-04 11-49-38.png

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:
Screenshot from 2019-04-04 16-40-09.png [/CODE]

Similar projects

Plugin →