Skip to content

Commit

Permalink
Updates on Documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Bacellar Moralez <guibacellar@gmail.com>
  • Loading branch information
guibacellar committed Nov 8, 2023
1 parent 0cdb37d commit 08f6070
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog/v030.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Proxy (HTTP, SOCKS4, SOCKS5) support ([#26](https://github.com/guibacellar/TEx/issues/26))
- Discord Notifications now have a source information with account/phone number
- Discord Notifications now allow to send downloaded files as attachments ([#41](https://github.com/guibacellar/TEx/issues/41))
- New Message Finder Rule to Catch All Messages
- New Notification connector for Elastic Search ([#12](https://github.com/guibacellar/TEx/issues/12))
- Fine Control on Media Download Settings ([#37](https://github.com/guibacellar/TEx/issues/37))
Expand Down
4 changes: 4 additions & 0 deletions docs/configuration/complete_configuration_file_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ notifier=NOTIFIER.ELASTIC_SEARCH.GENERAL
webhook=https://discord.com/api/webhooks/1157896186751897357/o7foobar4txvAvKSdeadHiI-9XYeXaGlQtd-5PtrrX_eCE0XElWktpPqjrZ0KbeefPtQC
prevent_duplication_for_minutes=240
timeout_seconds=30
media_attachments_enabled=false

[NOTIFIER.DISCORD.MY_HOOK_2]
webhook=https://discord.com/api/webhooks/1128765187657681875/foobarqOMFp_4tM2ic2mbeefNPOZqJnBZZdfaubQv2vJgbYzfdeadZd5aqGX6FmCmbNjX
prevent_duplication_for_minutes=240
media_attachments_enabled=false

[NOTIFIER.DISCORD.SIGNALS_HOOK]
webhook=https://discord.com/api/webhooks/1128765187657681875/foobarqOMFp_457EDs2mbeefNPPeqJnBZZdfaubQvOKIUHYzfdeadZd5aqGX6FmCmbNjv
prevent_duplication_for_minutes=0
media_attachments_enabled=true
media_attachments_max_size_bytes=10000000

[NOTIFIER.ELASTIC_SEARCH.GENERAL]
address=https://localhost:9200
Expand Down
17 changes: 15 additions & 2 deletions docs/notification/notification_discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,40 @@ For each notification hook you must set a configuration using the default name s
**Parameters:**

* **webhook** > Required - Discord Webhook URI
* **prevent_duplication_for_minutes** > Required - Time (in minutes) that the system keep track of messages sent to Discord servers to prevent others message with same content to be sent to the webhook. If you don't want to use this feature, just set the parameter to 0
* **timeout_seconds** > Optional - Timeout (in seconds) that waits to send the message. If the message sent take more that time, the message will be ignored
* **prevent_duplication_for_minutes** > Required - Time (in minutes) that the system keep track of messages sent to Discord servers to prevent others message with same content to be sent to the webhook. If you don't want to use this feature, just set the parameter to 0.
* **timeout_seconds** > Optional - Timeout (in seconds) that waits to send the message. If the message sent take more that time, the message will be ignored.
* Default: 30
* **media_attachments_enabled** > Optional - Enable/Disable the behavior for sending downloaded medias on messages that have been reported.
* Default: false
* **media_attachments_max_size_bytes** > Optional - Set the max size in bytes to send the medias on the notifications.
* Default: 10000000

=true
media_attachments_max_size_bytes=10000000
**Changes on Configuration File**
```ini
[NOTIFIER.DISCORD.MY_HOOK_1]
webhook=https://discord.com/api/webhooks/1157896186751897357/o7foobar4txvAvKSdeadHiI-9XYeXaGlQtd-5PtrrX_eCE0XElWktpPqjrZ0KbeefPtQC
prevent_duplication_for_minutes=240
timeout_seconds=30
media_attachments_enabled=true
media_attachments_max_size_bytes=10000000

[NOTIFIER.DISCORD.MY_HOOK_2]
webhook=https://discord.com/api/webhooks/1128765187657681875/foobarqOMFp_4tM2ic2mbeefNPOZqJnBZZdfaubQv2vJgbYzfdeadZd5aqGX6FmCmbNjX
prevent_duplication_for_minutes=240
media_attachments_enabled=false
media_attachments_max_size_bytes=10000000

[NOTIFIER.DISCORD.MY_HOOK_3]
webhook=https://discord.com/api/webhooks/1256789875462124045/bQ9TZqOzgA05PLVu8E2LU3N5foobarFU8-0nQbeefP5oIgAUOlydeadf7Uc19Hs00OJQ
prevent_duplication_for_minutes=60
timeout_seconds=30
media_attachments_enabled=true
media_attachments_max_size_bytes=25000000

[NOTIFIER.DISCORD.MY_HOOK_4]
webhook=https://discord.com/api/webhooks/1487651987651004895/mR0v3zOywH3Z5HvdeadrGEqqndkcYepgCM-Q6foobardjAMXAEbeefuA_F7-h5JcBM4RT
prevent_duplication_for_minutes=240
media_attachments_enabled=true
```

0 comments on commit 08f6070

Please sign in to comment.