Repository navigation
Templating
Templating work by adding $VAL into template string in .json file and is then replaced by actual data that the MatchZy event provides and sent to Discord webhook.
-
$MATCHID- Fisplays the matchid internally used by MatchZy and used in match config file. -
$WINNER- Fisplays name of the winning team. For exampleteam_luksehor if match config is provided the name of the team likeVitalityetc... -
$NUMMAP- Displays the number of map in series. -
$MAPS- Displays total number of maps to be played. For example in BO5 it would show 5. -
$PICKEDMAP- Displays the name of map that was picked/banned in veto. -
$SELECTOR- Displays name of team that picked/banned in veto. -
$SIDEPICKED- Displays which side was picked in veto. -
$SERIES1- Shows score in series for first team after series end. -
$SERIES2- Shows score in series for second team after series end.
-
$ROUND- Displays the number of round which ended. -
$DUROUND- Displays the time round lasted in MM:SS. -
$REASON- Displays the reason of round end. For Examplebomb defused, which could be used with$WINNERvariable.
-
$TEAM1- Displays name of the first team. -
$TEAM2- Displays name of the second team. -
$MAPS1- Displays how many won maps first team has. -
$MAPS2- Displays how many won maps second team has. -
$SCORE1- Displays current maps score for first team. -
$SCORE2- Displays current maps score for second team. -
$SCORE_CT1- Display current maps score on ct side for the first team. -
$SCORE_CT2- Display current maps score on ct side for the second team. -
$SCORE_TT1- Display current maps score on t side for the first team. -
$SCORE_TT2- Display current maps score on t side for the second team. -
$SIDE1- Displays side on which the first team is on. -
$SIDE2- Displays side on which the second team is on. -
$STARTSIDE1- Displays on which side the first team started on. -
$STARTSIDE2- Displays on which side the second team started on.
-
$STEAMID- Displays current players steamid. Useable in discords markdown for linkind profile. -
$NICKNAME- Displays the nickname player has on server. -
Soon also stats will be available.
- $FOREACH() which requires array as first argument and string in '' literals as second. For example to print each players nickname you do
$FOREACH($PLAYERS1, '[$NICKNAME](https://steamcommunity/id/$STEAMID) \n')