Stasiek Michalski 73f0a6
# This is a sample of the config file showing all avaliable options.
Stasiek Michalski 73f0a6
# Where possible we have documented what they do, and all values are the
Stasiek Michalski 73f0a6
# default values.
Stasiek Michalski 73f0a6
Stasiek Michalski 73f0a6
bridge:
Stasiek Michalski 73f0a6
  # Domain part of the bridge, e.g. matrix.org
Stasiek Michalski 73f0a6
  domain: "opensuse.org"
Stasiek Michalski 73f0a6
  # This should be your publically facing URL because Discord may use it to
Stasiek Michalski 73f0a6
  # fetch media from the media store.
Stasiek Michalski 73f0a6
  homeserverUrl: "http://opensuse.org"
Stasiek Michalski 73f0a6
  # Interval at which to process users in the 'presence queue'. If you have
Stasiek Michalski 73f0a6
  # 5 users, one user will be processed every 500 milliseconds according to the
Stasiek Michalski 73f0a6
  # value below. This has a minimum value of 250.
Stasiek Michalski 73f0a6
  # WARNING: This has a high chance of spamming the homeserver with presence
Stasiek Michalski 73f0a6
  # updates since it will send one each time somebody changes state or is online.
Stasiek Michalski 73f0a6
  presenceInterval: 500
Stasiek Michalski 73f0a6
  # Disable setting presence for 'ghost users' which means Discord users on Matrix
Stasiek Michalski 73f0a6
  # will not be shown as away or online.
Stasiek Michalski 73f0a6
  disablePresence: false
Stasiek Michalski 73f0a6
  # Disable sending typing notifications when somebody on Discord types.
Stasiek Michalski 73f0a6
  disableTypingNotifications: false
Stasiek Michalski 73f0a6
  # Disable deleting messages on Discord if a message is redacted on Matrix.
Stasiek Michalski 73f0a6
  disableDeletionForwarding: false
Stasiek Michalski 73f0a6
  # Enable users to bridge rooms using !discord commands. See
Stasiek Michalski 73f0a6
  # https://t2bot.io/discord for instructions.
Stasiek Michalski 73f0a6
  enableSelfServiceBridging: false
Stasiek Michalski 73f0a6
  # Disable sending of read receipts for Matrix events which have been
Stasiek Michalski 73f0a6
  # successfully bridged to Discord.
Stasiek Michalski 73f0a6
  disableReadReceipts: false
Stasiek Michalski 73f0a6
  # Disable Join Leave echos from matrix
Stasiek Michalski 73f0a6
  disableJoinLeaveNotifications: true
Stasiek Michalski 73f0a6
  disableEveryoneMetions: true
Stasiek Michalski 73f0a6
  disableHereMentions: true
Stasiek Michalski 73f0a6
# Authentication configuration for the discord bot.
Stasiek Michalski 73f0a6
auth:
Stasiek Michalski 73f0a6
  clientID: "672058964707377152"
Stasiek Michalski 73f0a6
  botToken: "{{ pillar['profile']['matrix']['discord_bot_token'] }}"
Stasiek Michalski 73f0a6
logging:
Stasiek Michalski 73f0a6
  # What level should the logger output to the console at.
Stasiek Michalski 73f0a6
  console: "warn" #silly, verbose, info, http, warn, error, silent
Stasiek Michalski 73f0a6
  lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
Stasiek Michalski 73f0a6
  files:
Stasiek Michalski 73f0a6
    - file: "debug.log"
Stasiek Michalski 73f0a6
      disable:
Stasiek Michalski 73f0a6
        - "PresenceHandler" # Will not capture presence logging
Stasiek Michalski 73f0a6
    - file: "warn.log" # Will capture warnings
Stasiek Michalski 73f0a6
      level: "warn"
Stasiek Michalski 73f0a6
    - file: "botlogs.log" # Will capture logs from DiscordBot
Stasiek Michalski 73f0a6
      level: "info"
Stasiek Michalski 73f0a6
      enable:
Stasiek Michalski 73f0a6
        - "DiscordBot"
Stasiek Michalski 73f0a6
database:
Stasiek Michalski 73f0a6
  userStorePath: "user-store.db"
Stasiek Michalski 73f0a6
  roomStorePath: "room-store.db"
Stasiek Michalski 73f0a6
  # You may either use SQLite or Postgresql for the bridge database, which contains
Stasiek Michalski 73f0a6
  # important mappings for events and user puppeting configurations.
Stasiek Michalski 73f0a6
  # Use the filename option for SQLite, or connString for Postgresql.
Stasiek Michalski 73f0a6
  # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
Stasiek Michalski 73f0a6
  # WARNING: You will almost certainly be fine with sqlite unless your bridge
Stasiek Michalski 73f0a6
  # is in heavy demand and you suffer from IO slowness.
Stasiek Michalski 73f0a6
  filename: "discord.db"
Stasiek Michalski 73f0a6
  # connString: "postgresql://user:password@localhost/database_name"
Stasiek Michalski 73f0a6
room:
Stasiek Michalski 73f0a6
  # Set the default visibility of alias rooms, defaults to "public".
Stasiek Michalski 73f0a6
  # One of: "public", "private"
Stasiek Michalski 73f0a6
  defaultVisibility: "public"
Stasiek Michalski 73f0a6
channel:
Stasiek Michalski 73f0a6
    # Pattern of the name given to bridged rooms.
Stasiek Michalski 73f0a6
    # Can use :guild for the guild name and :name for the channel name.
Stasiek Michalski 73f0a6
    namePattern: "[Discord] :guild :name"
Stasiek Michalski 73f0a6
    # Changes made to rooms when a channel is deleted.
Stasiek Michalski 73f0a6
    deleteOptions:
Stasiek Michalski 73f0a6
       # Prefix the room name with a string.
Stasiek Michalski 73f0a6
       #namePrefix: "[Deleted]"
Stasiek Michalski 73f0a6
       # Prefix the room topic with a string.
Stasiek Michalski 73f0a6
       #topicPrefix: "This room has been deleted"
Stasiek Michalski 73f0a6
       # Disable people from talking in the room by raising the event PL to 50
Stasiek Michalski 73f0a6
       disableMessaging: false
Stasiek Michalski 73f0a6
       # Remove the discord alias from the room.
Stasiek Michalski 73f0a6
       unsetRoomAlias: true
Stasiek Michalski 73f0a6
       # Remove the room from the directory.
Stasiek Michalski 73f0a6
       unlistFromDirectory: true
Stasiek Michalski 73f0a6
       # Set the room to be unavaliable for joining without an invite.
Stasiek Michalski 73f0a6
       setInviteOnly: true
Stasiek Michalski 73f0a6
       # Make all the discord users leave the room.
Stasiek Michalski 73f0a6
       ghostsLeave: true
Stasiek Michalski 73f0a6
limits:
Stasiek Michalski 73f0a6
    # Delay in milliseconds between discord users joining a room.
Stasiek Michalski 73f0a6
    roomGhostJoinDelay: 6000
Stasiek Michalski 73f0a6
    # Delay in milliseconds before sending messages to discord to avoid echos.
Stasiek Michalski 73f0a6
    # (Copies of a sent message may arrive from discord before we've
Stasiek Michalski 73f0a6
    # fininished handling it, causing us to echo it back to the room)
Stasiek Michalski 73f0a6
    discordSendDelay: 750
Stasiek Michalski 73f0a6
ghosts:
Stasiek Michalski 73f0a6
    # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
Stasiek Michalski 73f0a6
    nickPattern: ":nick"
Stasiek Michalski 73f0a6
    # Pattern for the ghosts username, available is :username, :tag and :id
Stasiek Michalski 73f0a6
    usernamePattern: ":username#:tag"