A simple (for now) Discord chat bridge for Hytale.
/lattice link, /lattice unlinkThe config file should look something like this:
{
"Discord": {
"Token": "your_token_here",
"GuildId": "",
"ChannelId": "",
"WebhookId": "",
"Messages": {
"Join": "%player_username% joined %player_world_displayname%.",
"Leave": "%player_username% left.",
"ServerStarted": "Server started!",
"ServerStopped": "Server stopped.",
"UseHyvatarAvatars": true
}
},
"ChatFormat": "<color:#5865F2>[Discord]</color> %discord_name%: %discord_message% %discord_attachments%"
}Create a Discord bot and make sure to enable Message Content Intent for it, otherwise it will not be able to read the messages.
After that you can invite the bot and create a channel and a webhook in that channel. Fill in the ChannelId and the WebhookId.
ChannelId is optional but recommended so the bot only creates guild commands rather than global commands.
Finally restart your server and enjoy.
0 Comments