Skip to content

Instantly share code, notes, and snippets.

@manuelgu manuelgu/explanation.md Secret
Last active Mar 7, 2017

Embed
What would you like to do?
Configuration for your config.yml of DiscordMC

Your default config.yml looks something like this

channels:
    minecraft_to_discord: #blue
      - 'chatlog'
      - 'chatting'
    discord_to_minecraft: #blue
      - 'chatting'
      - 'announcement'

Lets say you have a channel server-chat that should both receive and relay chat messages. An appropriate configuration would be

channels:
    minecraft_to_discord:
      - 'server-chat'
    discord_to_minecraft:
      - 'server-chat'

minecraft_to_discord is a list of channels that receive messages from Minecraft

discord_to_minecraft is a list of channels that relay messages to Minecraft

========

settings:
  # Application token
  token: 'TOKEN_HERE'
  # Send login messages
  send_game_login: true
  # Send logout messages
  send_game_logout: true
  # Send chat messages
  send_game_chat: true
  # Send messages from Discord to console
  send_game_chat_also_to_console: true
  # Send discord chat to minecraft
  send_discord_chat: true
  # Send death messages to discord
  send_death_message: true
  # Use nicknames for chat etc
  use_nicknames: false
  # Allow mentioning users via @<user-name>
  use_mentions: true
  # Use ingame chat format of player for Discord->Minecraft connection
  use_ingame_format: true
  # Check for updates using SpiGet
  check_for_updates: true
  # Prefix for adminchat which won't be sent to Discord
  admin_chat_prefix: "§cAdminChat>"
  templates:
    chat_message_discord: '**%user**: %message'
    player_join_minecraft: '%user joined the game'
    player_leave_minecraft: '%user left the game'
    chat_message_minecraft: '&b(discord [%channel]) &r%user >> %message'
  channels:
    ## SEE UP ABOVE
    minecraft_to_discord:
      - 'chatlog'
      - 'chatting'
    discord_to_minecraft:
      - 'chatting'
      - 'announcement'
  discord_commands:
    enabled: true
    command_prefix: '?'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.