This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messageType: an int value representing the message type: | |
0: normal message | |
1: action message (/me) | |
2: team message | |
function messageLogDiscord(message, messagetype) | |
sendDiscordMessage(message) | |
end | |
addEventHandler("onPlayerChat", getRootElement(), messageLogDiscord) |