diff --git a/config.json.example b/config.json.example index 0a7e76a..dabb0dc 100644 --- a/config.json.example +++ b/config.json.example @@ -1,12 +1,28 @@ { "config": { - "chat_channel": "testchatchannel", - "command_channel": "testchatchannel", + "chat_channel": "minecraft", + "command_channel": "minecraft", "command_prefix": "!", "regex": [ { "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" } ] } diff --git a/servers.json.example b/servers.json.example index 6ca2116..2ac9692 100644 --- a/servers.json.example +++ b/servers.json.example @@ -3,11 +3,13 @@ { "path": "/path/to/server/folder", "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" }, { "path": "/path/to/server/folder", "servername": "example2", + "description": "Example server (1.18.2)", "startcommand": "examplestartscript.sh" } ]