FragLand/terracord

View on GitHub
terracord.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Terracord configuration version 1.3.1 -->
<configuration>

  <!-- Discord bot token -->
  <bot token="ABC" />

  <!-- Discord channel ID -->
  <channel id="123" />

  <!-- Discord bot owner ID -->
  <owner id="123" />

  <!-- Bot command prefix -->
  <command prefix="!" />

  <!-- Relay bot commands from Discord to players -->
  <relay commands="true" />

  <!-- Toggle execution of TShock commands submitted remotely by Discord bot owner -->
  <remote commands="true" />

  <!-- List of space-separated Discord roles authorized to execute TShock commands remotely -->
  <authorized roles="Administrators Moderators" />

  <!-- Discord bot game for "playing" status -->
  <game status="$server_name: $world_name: $player_count/$player_slots" />

  <!-- Topic update interval in seconds and topics to set when relay is offline and online -->
  <topic interval="300" offline="Relay offline" online="$server_name: $world_name | $player_count/$player_slots players online | Server online for $uptime | Last update: $current_time" />

  <!-- Terraria broadcast color in RGB -->
  <color red="255" green="215" blue="0" />

  <!-- Toggle broadcasts, chat, and world saves displayed in Discord -->
  <silence broadcasts="false" chat="false" saves="false" />

  <!-- Notify Discord channel of relay availability after restoring the connection -->
  <announce reconnect="false" />

  <!-- Message sent to Discord text channel when the relay becomes available -->
  <available text="**:white_check_mark: Relay online.**" />

  <!-- Message sent to Discord text channel when the relay is shutting down -->
  <unavailable text="**:octagonal_sign: Relay offline.**" />

  <!-- Message sent to Discord text channel when a player joins the game -->
  <join text="**:green_circle: $player_name has joined the server.**" />

  <!-- Message sent to Discord text channel when a player leaves the game -->
  <leave text="**:red_circle: $player_name has left the server.**" />

  <!-- Message sent to Discord text channel when a broadcast is sent from the game -->
  <broadcast text="**:mega: Broadcast:** $message" />

  <!-- Message sent to Discord text channel when a player chats in the game -->
  <player text="**[$group_name]&lt;$player_name&gt;** $message" />

  <!-- Message sent to game when a user chats in the Discord text channel -->
  <chat text="&lt;$user_name@Discord&gt; $message" />

  <!-- Toggle Discord chat displayed in game -->
  <ignore chat="false" />

  <!-- Log all chat messages -->
  <log chat="true" />

  <!-- Maximum length allowed in game for received Discord messages (0 = unlimited) -->
  <message length="0" />

  <!-- Debug mode -->
  <debug mode="false" />

  <!-- Locale -->
  <locale string="en-US" />

  <!-- Timestamp format -->
  <timestamp format="MM/dd/yyyy HH:mm:ss zzz" />

  <!-- Terminate TShock when an error is encountered -->
  <exception abort="false" />

  <!-- Convert emoticons from Terraria players to emojis in Discord -->
  <convert emoticons="false" />

  <!-- Emoticon to emoji mappings -->
  <map emoticon=":~(" emoji=":cry:" />
  <map emoticon=":E" emoji=":nerd:" />
  <map emoticon=";)" emoji=":wink:" />
  <map emoticon=":*" emoji=":kissing:" />
  <map emoticon=":D" emoji=":grinning:" />
  <map emoticon=":\" emoji=":confused:" />
  <map emoticon=":/" emoji=":confused:" />
  <map emoticon="&lt;3" emoji=":heart:" />
  <map emoticon=":o" emoji=":open_mouth:" />
  <map emoticon=":O" emoji=":open_mouth:" />
  <map emoticon=":)" emoji=":slight_smile:" />
  <map emoticon=":(" emoji=":slight_frown:" />
  <map emoticon=":|" emoji=":neutral_face:" />
  <map emoticon=":p" emoji=":stuck_out_tongue:" />
  <map emoticon=":P" emoji=":stuck_out_tongue:" />
  <map emoticon="&lt;/3" emoji=":broken_heart:" />
  <map emoticon=";p" emoji=":stuck_out_tongue_winking_eye:" />
  <map emoticon=";P" emoji=":stuck_out_tongue_winking_eye:" />

</configuration>