Skip to content

Commit

Permalink
[CHANGE] Apply Discord Proxy settings to DMs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Dec 5, 2024
1 parent 8010380 commit 1474876
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Section Order:
### Security
-->

## [2.5.3] - 2024-12-05

### Changed

- Discord Proxy settings are now also applied to DM messages, missed that one in the last release …

## [2.5.2] - 2024-12-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion aasrp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
# Django
from django.utils.translation import gettext_lazy as _

__version__ = "2.5.2"
__version__ = "2.5.3"
__title__ = _("Ship Replacement")
6 changes: 5 additions & 1 deletion aasrp/discord/direct_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# AA SRP
from aasrp import __title__
from aasrp.app_settings import (
DISCORDPROXY_HOST,
DISCORDPROXY_PORT,
DISCORDPROXY_TIMEOUT,
aa_discordnotify_installed,
allianceauth_discordbot_installed,
discordproxy_installed,
Expand Down Expand Up @@ -112,7 +115,8 @@ def _discordproxy_send_private_message(
from discordproxy.client import DiscordClient
from discordproxy.exceptions import DiscordProxyException

client = DiscordClient()
target = f"{DISCORDPROXY_HOST}:{DISCORDPROXY_PORT}"
client = DiscordClient(target=target, timeout=DISCORDPROXY_TIMEOUT)

try:
logger.debug(msg="Trying to send a direct message via discordproxy")
Expand Down

0 comments on commit 1474876

Please sign in to comment.