Skip to content

Commit

Permalink
Update bridge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev authored Jul 5, 2024
1 parent 268effb commit 86c1942
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cogs/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,15 +1118,16 @@ async def send(self, room: str, message: nextcord.Message or revolt.Message,
break
size_total += attachment.size
if size_total > 25000000:
if source == platform == 'revolt':
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
replies=[revolt.MessageReply(message)])
elif source == platform == 'guilded':
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
reply_to=message)
elif source == platform:
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
reference=message)
if not self.bot.config['suppress_filesize_warning']:
if source == platform == 'revolt':
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
replies=[revolt.MessageReply(message)])
elif source == platform == 'guilded':
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
reply_to=message)
elif source == platform:
await message.channel.send('Your files passed the 25MB limit. Some files will not be sent.',
reference=message)
break
max_files += 1

Expand Down

0 comments on commit 86c1942

Please sign in to comment.