Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. # This is a sample of the config file showing all avaliable options.
  2. # Where possible we have documented what they do, and all values are the
  3. # default values.
  4.  
  5. bridge:
  6. # Domain part of the bridge, e.g. matrix.org
  7. domain: "mutnt.io"
  8. # This should be your publically facing URL because Discord may use it to
  9. # fetch media from the media store.
  10. homeserverUrl: "https://mutnt.io:8448"
  11. # Interval at which to process users in the 'presence queue'. If you have
  12. # 5 users, one user will be processed every 500 milliseconds according to the
  13. # value below. This has a minimum value of 250.
  14. # WARNING: This has a high chance of spamming the homeserver with presence
  15. # updates since it will send one each time somebody changes state or is online.
  16. presenceInterval: 500
  17. # Disable setting presence for 'ghost users' which means Discord users on Matrix
  18. # will not be shown as away or online.
  19. disablePresence: false
  20. # Disable sending typing notifications when somebody on Discord types.
  21. disableTypingNotifications: false
  22. # Disable parsing discord usernames out of matrix messages so
  23. # that it highlights discord users.
  24. # WARNING: Not always 100% accurate, but close enough usually.
  25. disableDiscordMentions: false
  26. # Disable deleting messages on Discord if a message is redacted on Matrix.
  27. disableDeletionForwarding: false
  28. # Enable users to bridge rooms using !discord commands. See
  29. # https://t2bot.io/discord for instructions.
  30. enableSelfServiceBridging: false
  31. # For both below, a space is inserted after @ to stop the mentions working.
  32. # Disable relaying @everyone to Discord. Non-puppeted users can abuse this.
  33. disableEveryoneMention: false
  34. # Disable relaying @here to Discord. Non-puppeted users can abuse this.
  35. disableHereMention: false
  36. # Authentication configuration for the discord bot.
  37. auth:
  38. clientID: "xxxx"
  39. botToken: "xxxxxxxxxxx"
  40. logging:
  41. # What level should the logger output to the console at.
  42. console: "silly" #silly, verbose, info, http, warn, error, silent
  43. lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  44. files:
  45. - file: "debug.log"
  46. disable:
  47. - "PresenceHandler" # Will not capture presence logging
  48. - file: "warn.log" # Will capture warnings
  49. level: "warn"
  50. - file: "botlogs.log" # Will capture logs from DiscordBot
  51. level: "info"
  52. enable:
  53. - "DiscordBot"
  54. database:
  55. userStorePath: "user-store.db"
  56. roomStorePath: "room-store.db"
  57. # You may either use SQLite or Postgresql for the bridge database, which contains
  58. # important mappings for events and user puppeting configurations.
  59. # Use the filename option for SQLite, or connString for Postgresql.
  60. # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  61. # WARNING: You will almost certainly be fine with sqlite unless your bridge
  62. # is in heavy demand and you suffer from IO slowness.
  63. filename: "discord.db"
  64. # connString: "postgresql://user:password@localhost/database_name"
  65. room:
  66. # Set the default visibility of alias rooms, defaults to "public".
  67. # One of: "public", "private"
  68. defaultVisibility: "public"
  69. channel:
  70. # Pattern of the name given to bridged rooms.
  71. # Can use :guild for the guild name and :name for the channel name.
  72. namePattern: "[Discord] :guild :name"
  73. # Changes made to rooms when a channel is deleted.
  74. deleteOptions:
  75. # Prefix the room name with a string.
  76. #namePrefix: "[Deleted]"
  77. # Prefix the room topic with a string.
  78. #topicPrefix: "This room has been deleted"
  79. # Disable people from talking in the room by raising the event PL to 50
  80. disableMessaging: false
  81. # Remove the discord alias from the room.
  82. unsetRoomAlias: true
  83. # Remove the room from the directory.
  84. unlistFromDirectory: true
  85. # Set the room to be unavaliable for joining without an invite.
  86. setInviteOnly: true
  87. # Make all the discord users leave the room.
  88. ghostsLeave: true
  89. limits:
  90. # Delay in milliseconds between discord users joining a room.
  91. roomGhostJoinDelay: 6000
  92. # Delay in milliseconds before sending messages to discord to avoid echos.
  93. # (Copies of a sent message may arrive from discord before we've
  94. # fininished handling it, causing us to echo it back to the room)
  95. discordSendDelay: 750
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement