https://github.com/gameservermanagers/linuxgsm-support-bot
Discord support bot for LinuxGSM
https://github.com/gameservermanagers/linuxgsm-support-bot
Last synced: 7 months ago
JSON representation
Discord support bot for LinuxGSM
- Host: GitHub
- URL: https://github.com/gameservermanagers/linuxgsm-support-bot
- Owner: GameServerManagers
- Created: 2021-02-21T11:46:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T10:48:03.000Z (over 2 years ago)
- Last Synced: 2025-06-02T00:53:48.334Z (9 months ago)
- Language: C#
- Size: 79.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Support: SupportBot/CommandHandler.cs
Awesome Lists containing this project
README
# LGSM-SupportBot
Discord support bot for LinuxGSM
# Adding Triggers
The file: [triggers.json](SupportBot/triggers.json) contains all the triggers the bot will respond to.
If you need to edit or update one of them, please open a pull request with the change.
# Trigger format
The trigger format is done in JSON to make it easier to update and review.
```json
{
"Name": "0x202",
"Starters": [
{
"Type": "simple",
"Value": "0x202"
}
],
"Answer": "https://docs.linuxgsm.com/support/faq#write-error-no-space-left-on-device"
}
```
Each trigger can have multiple starters, at this time there are two supported types of starters, `simple` and `regex`
## Simple Starter
The simple starter will search each message to see if it contains the specified text, this must be done in lower case as the entire message is cast to lower.
## Regex Starter
The regex start will search each message for a match of the regex, if a single match is found the answer will be triggered.
Note .NET regex is used so no `Nested quantifier +`
# What happens if multiple triggers are hit?
The bot will simply collect each answer, and send a single message with all of them along with a notice that multiple potential issues were found.