Skip to content

Channel Configuration

_Axieum edited this page Nov 23, 2019 · 4 revisions

MDC supports multiple channels, as well as dimension filtering. This can lead to creativity such as having channels dedicated to certain events (i.e. a death log, per dimension channel, etc.).

#Channel configurations
[[channels]]
    #Discord channel ID
    id = 252348118840845121
    #Minecraft dimension IDs to listen to (blank for all)
    dimensions = [-1, 0, 1]

    #Minecraft events being translated into Discord
    [channels.minecraft]
        #Server started message
        #Allowed Values: DATETIME|format, ELAPSED|format
        started = "**Server started!** (took {{ELAPSED|s.S's'}}) :ok_hand:"
        #Server is stopping message
        #Allowed Values: DATETIME|format, UPTIME|format
        stopping = "**Server stopping...** ({{DATETIME|d/MM/yyyy '@' hh:mma}}) :raised_hand:"
        #Server stopped message
        #Allowed Values: DATETIME|format, ELAPSED|format
        stopped = "**Server stopped!** (uptime {{UPTIME}}) :no_entry:"
        #Server potentially crashed message
        #Allowed Values: DATETIME|format, ELAPSED|format
        crashed = "**Server crash detected!** (after {{UPTIME|d'd' H'hr' m'mins' s'secs'}}) :warning:"
        #Player joined the server message
        #Allowed Values: DATETIME|format, PLAYER, DIMENSION, X, Y, Z
        join = "`{{DIMENSION}}` **{{PLAYER}}** joined! :wave:"
        #Player left the server message
        #Allowed Values: DATETIME|format, ELAPSED|format, PLAYER, DIMENSION, X, Y, Z
        leave = "`{{DIMENSION}}` **{{PLAYER}}** logged out after _{{ELAPSED}}_. :door:"
        #Player died message
        #Allowed Values: DATETIME|format, PLAYER, CAUSE, HOLDING|default, DIMENSION, X, Y, Z
        death = "**{{PLAYER}}** {{CAUSE}} in {{DIMENSION}}! :skull:"
        #Player made an advancement
        #Allowed Values: DATETIME|format, PLAYER, TYPE, TITLE, DESCRIPTION
        advancement = "**{{PLAYER}}** completed the {{TYPE}} **{{TITLE}}**! :confetti_ball:\\n_{{DESCRIPTION}}_"
        #Player chat
        #Allowed Values: DATETIME|format, PLAYER, MESSAGE, DIMENSION
        chat = "`{{DIMENSION}}` **{{PLAYER}}** > {{MESSAGE}}"
        #Player changed dimension
        #Allowed Values: DATETIME|format, PLAYER, DIMENSION, X, Y, Z
        dimension = "**{{PLAYER}}** entered {{DIMENSION}}."

    #Discord events being translated into Minecraft
    [channels.discord]
        #Discord message received
        #Allowed Values: DATETIME|format, AUTHOR, MESSAGE
        chat = "<§b{{AUTHOR}}§r> {{MESSAGE}}"
        #Discord message updated/edited
        #Allowed Values: DATETIME|format, AUTHOR, OLD, NEW, DIFFERENCE
        edit = "<§b{{AUTHOR}}§r> {{DIFFERENCE}}"
        #Discord reaction added
        #Allowed Values: DATETIME|format, AUTHOR, REACTOR, EMOTE, MESSAGE|limit
        react = "<§b{{REACTOR}}§r> reacted with §6{{EMOTE}} §rto <§b{{AUTHOR}}§r>"
        #Discord reaction removed
        #Allowed Values: DATETIME|format, AUTHOR, REACTOR, EMOTE, MESSAGE|limit
        unreact = "<§b{{REACTOR}}§r> unreacted with §6{{EMOTE}} §rto <§b{{AUTHOR}}§r>"
        #Discord attachment(s) received
        #Allowed Values: DATETIME|format, AUTHOR, ATTACHMENT_URLS
        attachment = "<§b{{AUTHOR}}§r> sent {{ATTACHMENT_URLS}}"

[[channels]]
    #Discord channel ID
    id = 232618118380875120
    #Minecraft dimension IDs to listen to (blank for all)
    dimensions = []

    #Minecraft events being translated into Discord
    [channels.minecraft]
        #Player died message
        #Allowed Values: DATETIME|format, PLAYER, CAUSE, HOLDING|default, DIMENSION, X, Y, Z
        death = "**{{PLAYER}}** {{CAUSE}} in {{DIMENSION}}! :skull:\\n_They were holding {{HOLDING|nothing}} at {{X}}, {{Y}}, {{Z}}._"

The above configuration uses two channels and has the following effect:

General channel:

general channel more general channel message edit

Deaths channel:

deaths channel

Clone this wiki locally