Skip to content

Commit

Permalink
Fix spoiler conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Feb 19, 2025
1 parent 95e5875 commit 001f23c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions revolt_bridge_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ async def make_friendly(self, text):

# Convert spoilers to Discord format
components = text.split('!!')
for component in components:
if len(component) == 0:
components.remove(component)

to_replace = (len(components) - 1) - ((len(components) - 1) % 2)
text = text.replace('!!', '||', to_replace)

Expand Down Expand Up @@ -446,10 +442,6 @@ def to_color(color):

# Convert spoilers to Revolt format
components = content.split('||')
for component in components:
if len(component) == 0:
components.remove(component)

to_replace = (len(components) - 1) - ((len(components) - 1) % 2)
content = content.replace('||', '!!', to_replace)

Expand Down

0 comments on commit 001f23c

Please sign in to comment.