Discord Integration (DI)

Mods
147,542 Downloads Last Updated: Aug 10, 2021 Game Version: 1.16.5

This Mod connects the Minecraft with a discord chat.
The Mod a Discord command integration for the Mods Dimension Access Manager and More MobGriefing Options.
This Mod only works on the server side and won't work on the client side.

 

You need a server to play with friends? You don't know how to set up one? Just rent an already configured server!

Click on the picture above, select a plan (with recommended at least 6 GB),
use my code agent to get 25% off your first month and enjoy playing with your friends!

 

Support

Support: Supported Minecraft Versions
New Development and Fixes: 1.17.1
Bug Fixes: 1.16.5
Critical Bug Fixes: 1.15.2
End of Support: 1.14.4, 1.16.1-1.16.4

Features

Minecraft > Discord

Everything written in the Minecraft chat is added to the Discord chat by a Discord bot.
Additional death messages, advancements messages are sent to Discord.
The "say"- and the "me"-command has been changed and sent their messages to Discord too.
Server started and server stopped messages can be customized in the config.

Discord > Minecraft

Every message except from bots are sent to the Minecraft chat.
Bot messages can be sent to the Minecraft chat, if it is activated in the config.
The max length of messages transmitted from Discord to Minecraft can be configured to prevent spam. An error message is shown in the Discord chat, if the message is too long.
Messages, which are commands, are also not sent to the Minecraft chat.
There are default commands added by Discord Integration, custom commands can be added in the config. The command prefix can be configured in the config too.

Minecraft Commands

- /discord commands - shows the list of available commands configured in the Discord Integration with a help message what they do.
- /discord gamerules - shows the values of all Minecraft gamerules.
- /discord mods - shows a list of all mods in the server.

Default Discord Commands

If you type the following commands into the discord chat, you get information from the Minecraft server.
Custom commands can be added in the config.

Commands for Vanilla Minecraft

- !difficulty - shows the difficulty of the server.
- !gamerules - shows the gamerules and their values.
- !help - shows all commands with its description.
- !mods - shows a list of the mods on the server.
- !online - shows how many and which players are on the server.
- !seed - shows the seed of the active world.
- !time - shows the current day time on the server.
- !tps - shows the tps statistic of the server, and it's dimensions.

Commands for the Dimension Access Manager Mod

- !dimensions - shows the access states of all dimensions.

Commands for the More MobGriefing Options Mod

- !mobgriefing - shows all mobgriefing options of the mobs.

Server Config

The config file can be found in the "serverconfig" folder in the "world" folder and is named "discordintegration-server.toml".
- active
  Should the Discord integration be active?
  Default: false
- bot_token
  Token of your Discord bot
  Default: INSERT BOT TOKEN HERE
- channel_id
  Channel ID where the bot will be working
  Default: 0
  Available values: 0 or greater
- command_prefix
  Command prefix for Discord commands
  Default: !
- max_char_count
  How long should Discord messages send to Minecraft Chat be at most?
  If the value is -1, there is no limit to the length.
  Default: -1
  Available values: -1 to 2000
- messages
  Messages shown on Discord
  - server_started
    Options for the server start message
    - enabled
      Should a message be sent to the Discord chat, if the server started?
      Default: true
    - message
      Message send to the Discord chat, if the Minecraft server started.
      Default: Server started
  - server_stopped
    Options for the server stop message
    - enabled
      Should a message be sent to the Discord chat, if the server stopped?
      Default: true
    - message
      Message send to the Discord chat, if the Minecraft server stopped.
      Default: Server stopped
  - server_crashed
    Options for the server crash message
    - enabled
      Should a message be sent to the Discord chat, if the server crashed?
      Default: true
    - message
      Message send to the Discord chat, if the Minecraft server crashed.
      Default: Server crashed
  - player_joined
    Options for the player joined message
    - enabled
      Should a message be sent to the Discord chat, if a player joined?
      Default: true
    - message
      Message send to the Discord chat, if a player joined. (<player name> <message>)
      Default: joined the game.
  - player_left
    Options for the player left message
    - enabled
      Should a message be sent to the Discord chat, if a player left?
      Default: true
    - message
      Message send to the Discord chat, if a player left the server. (<player name> <message>)
      Default: disconnected.
  - player_died
    Options for the player died message
    - enabled
      Should a message be sent to the Discord chat, if a player died?
      Default: true
    - message
      Message send to the Discord chat, if a player died. (<player name> <message>) If left empty, the default Minecraft message is send.
  - tamed_mob_died
    Options for the tamed mob died message
    - enabled
      Should a message be sent to the Discord chat, if a tamed mob left?
      Default: true
    - message
      Message send to the Discord chat, if a tamed mob died. (<player name> <message>) If left empty, the default Minecraft message is send.
  - player_got_advancement
    Options for the player got advancement message
    - enabled
      Should a message be sent to the Discord chat, if a player got an advancement?
      Default: true
    - message
      Message send to the Discord chat, if a player got an advancement. (<player name> <message>) --<advancement title>--<new line>-<advancement description>-
      Default: has made the advancement
- other_bots
  Options how to deal with other bots
  - transmit_bot_messages
    Should messages of other bots be sent to the Minecraft chat?
    Default: false
- other_bots_command_prefixes
  Command prefixes of other bots.
  Messages with these prefixes are not sent to the Minecraft chat.
- commands
  Command mapping from Discord to Minecraft commands
  - discord_command
    Discord command without prefix
  - minecraft_command
    Minecraft command without prefix ('/')

  - use_parameters
    Should everything attached to the Discord command, be attached to the Minecraft command, too?
  - enabled
    Should the command be active?
  - description
    Description for the help command

How to set up a Discord bot and get the bot token

First you have to log into the Discord Developers Site.
Press "New Application" and enter a name for your application.
Go to the "Bot tab" and click "Add Bot".
Discord Developer Page: Bot TabClick onto "Click to Reveal Token" to get the bot token for the config.
To add the bot to a server click on "General Information" and add the "Client ID" into the following link:
https://discordapp.com/oauth2/authorize?client_id=YOUR_BOTS_CLIENT_ID&amp;scope=bot&amp;permissions=3072
**You have to replace YOUR_BOTS_CLIENT_ID by the client ID of your bot.**
Discord Developer Page: General Information TabOpen this link and add the bot to one of your server.
You can only add the bot to your own servers. If you want to add the bot to a server, that you don't own, you have to check the "Public Bot" option in the Bot tab and let the server owner add the bot to his/her Discord server.

How to get the channel ID

To get the channel ID you have to go in Discord into the "User Settings" > "Appearance" and have to activate the "Developer Mode"
Discord Developer ModeNext you go to the server and channel in which the bot shall operate.
Make a right click on this channel and click "Copy ID" and paste it into the config.
Discord Channel Menu

Thanks for the logo to Muse31.
You can use this mod in non-commercial modpacks without asking.
You can find more mods from me here.

Comments

Posts Quoted: