Skip to content

Commit

Permalink
removed all other beta necessities for sending to nerimity
Browse files Browse the repository at this point in the history
  • Loading branch information
Deutscher775 committed Oct 31, 2024
1 parent d2d556a commit cb06b53
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/astroidapi/sending_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cb06b53

Please sign in to comment.