mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
updated example json
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user