From cb06b53f9dd22cdd5d9747ef11f63c811b3ec4c4 Mon Sep 17 00:00:00 2001 From: Jason <81298350+Deutscher775@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:39:49 +0100 Subject: [PATCH] removed all other beta necessities for sending to nerimity --- src/astroidapi/sending_handler.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/astroidapi/sending_handler.py b/src/astroidapi/sending_handler.py index 0513d11..6e643a7 100644 --- a/src/astroidapi/sending_handler.py +++ b/src/astroidapi/sending_handler.py @@ -52,8 +52,7 @@ async def send_from_discord(cls, updated_json, endpoint, attachments: list = Non try: asyncio.create_task(cls.send_to_revolt(updated_json, endpoint, attachments)) asyncio.create_task(cls.send_to_guilded(updated_json, endpoint, attachments)) - if updated_json["config"]["isbeta"] is True: - asyncio.create_task(cls.send_to_nerimity(updated_json, endpoint, attachments)) + asyncio.create_task(cls.send_to_nerimity(updated_json, endpoint, attachments)) except Exception as e: raise errors.SendingError.SendFromDiscordError(e) @@ -62,8 +61,7 @@ async def send_from_discord(cls, updated_json, endpoint, attachments: list = Non async def send_from_nerimity(cls, updated_json, endpoint, attachments: list = None): try: asyncio.create_task(cls.send_to_discord(updated_json, endpoint, attachments)) - if updated_json["config"]["isbeta"] is True: - asyncio.create_task(cls.send_to_guilded(updated_json, endpoint, attachments)) + asyncio.create_task(cls.send_to_guilded(updated_json, endpoint, attachments)) if updated_json["config"]["isbeta"] is True: asyncio.create_task(cls.send_to_revolt(updated_json, endpoint, attachments)) return True @@ -86,8 +84,7 @@ async def send_from_revolt(cls, updated_json, endpoint, attachments: list = None async def send_from_guilded(cls, updated_json, endpoint, attachments: list = None): try: asyncio.create_task(cls.send_to_discord(updated_json, endpoint, attachments)) - if updated_json["config"]["isbeta"] is True: - asyncio.create_task(cls.send_to_nerimity(updated_json, endpoint, attachments)) + asyncio.create_task(cls.send_to_nerimity(updated_json, endpoint, attachments)) if updated_json["config"]["isbeta"] is True: asyncio.create_task(cls.send_to_revolt(updated_json, endpoint, attachments)) return True