Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edg-l/mc-helperbot
A bot that will answer users questions without any command. (spigot plugin)
https://github.com/edg-l/mc-helperbot
minecraft minecraft-plugin regex spigot-plugin
Last synced: 2 days ago
JSON representation
A bot that will answer users questions without any command. (spigot plugin)
- Host: GitHub
- URL: https://github.com/edg-l/mc-helperbot
- Owner: edg-l
- License: agpl-3.0
- Created: 2017-06-28T23:21:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T22:44:34.000Z (over 4 years ago)
- Last Synced: 2024-11-30T12:13:22.412Z (2 months ago)
- Topics: minecraft, minecraft-plugin, regex, spigot-plugin
- Language: Java
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# MC-HelperBot
Questions can use regex! Find out what regex is [here](https://www.computerhope.com/jargon/r/regex.htm).This plugin is a simple chat bot that will answer users questions without any need of a command.
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.## Generated config.yaml
```yml
BotName: "&6Helperbot&r:&7"
```## Generated questions.yaml
```yaml
questions:
-
question: '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 message.
broadcast: yes
# You can add this on any question to disable it without removing it from the file.
# disable: yes
-
question: '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: '\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'
answer: Please don't share ips!
cooldown: 5
broadcast: yes
-
# Remember, to escape a ' you need to repeat it like: ''
# https://github.com/dotmaster/toYaml/issues/1
question: '(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]'
answer: Please don't share urls!
cooldown: 5
broadcast: yes
```