axieum / minecord

Bring your Minecraft world into your Discord guild
https://www.curseforge.com/minecraft/mc-mods/minecord-for-discord
MIT License
15 stars 7 forks source link

Add chat format for in-game messages sent via `/me`, `/say`, `/tellraw`, etc. commands #51

Closed axieum closed 2 years ago

axieum commented 2 years ago

Is your feature request related to a problem?

To be able to configure a chat format for in-game messages triggered by players using the /me <action>, /say <message> and /tellraw commands.

Describe the solution you'd like.

e.g.

{
  "entries": [
    {
      "discord": {
        /*
         * A player sent an in-game chat message via the '/me' command
         * Usages: ${username}, ${player}, ${action} and ${world}
         */
        "emote": "`${world}` **${player}** _${action}_",
        /*
         * An admin broadcast an in-game chat message via the '/say' command
         * Usages: ${username}, ${player} and ${message}
         */
        "say": "[**${player:-Server}**] ${message}",
        /*
         * An admin broadcast an in-game message to all players via the '/tellraw' command
         * Usages: ${message}
         */
        "tellraw": "${message}"
      }
    }
  ]
}

Describe alternatives you've considered.

n/a

Agreements

Other

No response