Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jan 18, 2019
2 parents a724ef5 + 2c911c6 commit 9d429ee
Show file tree
Hide file tree
Showing 73 changed files with 8,885 additions and 6,787 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ logs
*.log.*
npm-debug.log*
.audit.json
*-audit.json

# Runtime data
pids
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ These instructions were tested against Node.js v8.11.1 and the Synapse homeserve
* Copy ``config/config.sample.yaml`` to ``config.yaml`` and edit it to reflect your setup.
* Note that you are expected to set ``domain`` and ``homeserverURL`` to your **public** host name.
While localhost would work, it does not resolve correctly with Webhooks/Avatars.
Please note that a self-signed SSL certificate won't work, either.

```yaml
bridge:
domain: "example.com"
homeserverUrl: "https://example.com:8448"
homeserverUrl: "https://example.com"
```
* Run ``node build/src/discordas.js -r -u "http://localhost:9005" -c config.yaml``
Expand Down
12 changes: 3 additions & 9 deletions config/config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,14 @@ bridge:
disablePresence: false
# Disable sending typing notifications when somebody on Discord types.
disableTypingNotifications: false
# Disable parsing discord usernames out of matrix messages so
# that it highlights discord users.
# WARNING: Not always 100% accurate, but close enough usually.
disableDiscordMentions: false
# Disable deleting messages on Discord if a message is redacted on Matrix.
disableDeletionForwarding: false
# Enable users to bridge rooms using !discord commands. See
# https://t2bot.io/discord for instructions.
enableSelfServiceBridging: false
# For both below, a space is inserted after @ to stop the mentions working.
# Disable relaying @everyone to Discord. Non-puppeted users can abuse this.
disableEveryoneMention: false
# Disable relaying @here to Discord. Non-puppeted users can abuse this.
disableHereMention: false
# Disable sending of read receipts for Matrix events which have been
# successfully bridged to Discord.
disableReadReceipts: false
# Authentication configuration for the discord bot.
auth:
clientID: "12345"
Expand Down
6 changes: 1 addition & 5 deletions config/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ properties:
type: "boolean"
disableTypingNotifications:
type: "boolean"
disableDiscordMentions:
type: "boolean"
disableDeletionForwarding:
type: "boolean"
enableSelfServiceBridging:
type: "boolean"
disableEveryoneMention:
type: "boolean"
disableHereMention:
disableReadReceipts:
type: "boolean"
auth:
type: "object"
Expand Down
Loading

0 comments on commit 9d429ee

Please sign in to comment.