Guides
- 📚 Setup
- 📝 Config Files
- 🖥️ Commands
Documentation
- 📺 Channels
- ✍️ Formatting
- ✉️ Group Messages
- 🤫 Filters and Replacers
- 🔎 Social and Local Spy
- ⚙️ Backend Chat Entry
- 📜 Join and Quit Messages
- 🔵 Discord Hook
HuskChat supports displaying messages on Discord, either through webhooks for one-way communication or by using Spicord for two-way communication (some setup required).
To enable Discord support, set enabled
to true
in the discord:
section of config.yml
. You can then configure the bot and channel webhooks.
Webhooks are a simple way to send messages to a Discord channel. You can create a webhook for a channel by going to the channel settings, then Integrations, then Webhooks. You can then create a webhook and copy the URL. In the HuskChat config, you can then add the webhook URL to the channel_webhooks
section of the config.
Spicord is a plugin that allows for two-way communication between Discord and Minecraft. You can find more information about Spicord here. Spicord can be installed on BungeeCord, Velocity, or Paper.
Why not support DiscordSRV?DiscordSRV does not support Velocity/Bungee, and Spicord does :-)
plugins/Spicord
directory using a text editor.
huskchat
to the addons
section of your botYour Spicord config.toml
file should contain a bot like this:
name = "Server Chat"
enabled = true
token = "[YOUR TOKEN]"
command_support = true
command_prefix = "-"
addons = [
"spicord::info",
"spicord::plugins",
"spicord::players",
"huskchat"
]
Here's how to create a bot and add it to your Discord server (Taken from Spicord's documentation):
https://discord.com/oauth2/authorize?scope=bot&permissions=8&client_id=YOUR_ID
but before replace YOUR_ID
with the ID you copied in the 3rd step, this will generate the invite url for your bot and redirect you to it, the generated url will make your bot have Administrator permissionNote that you are required to enable the following gateway intents for your bot on the developer panel, otherwise it won't boot up:
Once you have created your bot and invited it to your server, you can configure HuskChat to use it. In the discord:
section of the config, set enabled
to true
and spicord.enabled
to true
. You can then configure the bot and channel IDs.
To get the ID of a channel, ensure Developer Mode is enabled in your Discord settings, then right click a channel and select "Copy ID". All you need to do then is paste the ID into the config and map them to the corresponding in-game channel!
Restart your server, and enjoy!