Page cover

Discord Integration

Step 1: Setting up a discord bot

Navigate to Discord's Developer Portal here.

Click "New Application" at the top right

Give it a name, Agree to the TOS and click "Create"

Navigate to the Bot section in the sidebar.

Uncheck "PUBLIC BOT" and make sure presence intent, server members intent and message content intent are all enabled, then click save changes

Click reset token and keep the token safe. (DO NOT SHARE THIS ANYWHERE)

Next, go to your Discord client, then go to settings > Advanced and enable developer mode.

Right click on the channel you want your chat to be in, then click copy channel id.

Turning on the bot

In your Minecraft server files, go to plugins/UniversalChat/Discord.yml

Set enabled to true, like below

Enabled: true

Then fill in your Discord Bot Token, and channel id, an example looks like this:

Enabled: true
DiscordBotToken: Nzk5MjgxNDk0NDc2NDU1OTg3.YABS5g.2lmzECVlZv3vv6miVnUaKPQi2wI
ChatChannelID: 1395107357364584678

Commands:
    ChatSummary: true
    ServerInfo: false
    OnlinePlayers: true

Other:
    cfg-version: 3

Commands

There are 3 Built in commands that can be turned on or off in the configuration

Chat Summary

Generate a summary of the last 150 in-game chat messages

Server Info

Show technical information such as server TPS

Online Players

Show online players in the server

Last updated