updated example json

This commit is contained in:
Nayan
2025-09-04 16:28:25 +00:00
parent b355898d0a
commit 234aa2ba08
2 changed files with 21 additions and 3 deletions

View File

@@ -1,12 +1,28 @@
{ {
"config": { "config": {
"chat_channel": "testchatchannel", "chat_channel": "minecraft",
"command_channel": "testchatchannel", "command_channel": "minecraft",
"command_prefix": "!", "command_prefix": "!",
"regex": [ "regex": [
{ {
"match": ".*\\]: <(.*)> (.*)", "match": ".*\\]: <(.*)> (.*)",
"fstring": "**[{groups[0]}]**: {groups[1]}" "fstring": "**[{groups[0]}]**: {groups[1]}",
"description": "Passes chat from minecraft to discord"
},
{
"match": ".*\\[minecraft/DedicatedServer\\]: (.*) (joined the game|left the game)",
"fstring": "**{groups[0]} {groups[1]}**",
"description": "Passes join/leave messages from minecraft to discord"
},
{
"match": ".*\\[minecraft/DedicatedServer\\]: There are (.*) players online: (.*)",
"fstring": "There are {groups[0]} players online: **{groups[1]}**",
"description": "Passes player count from minecraft to discord (for listplayers command)"
},
{
"match": ".*\\[minecraft/DedicatedServer\\]: Done (.*)! For help, type \"help\"",
"fstring": "**Server ready!**",
"description": "Notifies discord when server has started"
} }
] ]
} }

View File

@@ -3,11 +3,13 @@
{ {
"path": "/path/to/server/folder", "path": "/path/to/server/folder",
"servername": "example", "servername": "example",
"description": "Example server (1.21.1)",
"startcommand": "screen -S example java -Xmx1024M -Xms512M -jar /path/to/server/spigot-1.18.2.jar nogui" "startcommand": "screen -S example java -Xmx1024M -Xms512M -jar /path/to/server/spigot-1.18.2.jar nogui"
}, },
{ {
"path": "/path/to/server/folder", "path": "/path/to/server/folder",
"servername": "example2", "servername": "example2",
"description": "Example server (1.18.2)",
"startcommand": "examplestartscript.sh" "startcommand": "examplestartscript.sh"
} }
] ]