Skip to content

Commit

Permalink
newline support for fxtwitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Feb 9, 2024
1 parent e441125 commit 05f94ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def on_message(self, message: Message):
if search(r"https?://(twitter\.com|x\.com)", message.content):
# if a twitter link, process it
send_message = ""
sentance = message.content.split(" ") # split into words
sentance = message.content.replace("\n", " ").split(" ")
for word in sentance:
# if any word contains a twitter link replace with fxtwitter
if search(r"https?://(twitter\.com|x\.com)", word):
Expand Down

0 comments on commit 05f94ca

Please sign in to comment.