Skip to content

Commit

Permalink
fixes and embed color
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev authored Nov 21, 2024
1 parent c4d01ad commit fac717c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridge_revolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,22 +1166,22 @@ async def unblock(self, ctx, *, target):
self.bot.db.save_data()
await ctx.send('User/server can now forward messages to this channel!')

async def roomlist(self, ctx, index, private=False):
async def roomlist(self, ctx, index, private=False):
try:
index = int(index) - 1
except:
index = 0
if index < 1:
index = 0
embed = Embed(title=f'{self.user.display_name or self.user.name} Rooms')
embed = Embed(title=f'{self.user.display_name or self.user.name} Rooms', color=self.bot.colors.unifier)

for i in range(20*index,20*(index+1)):
if i >= len(self.bot.bridge.rooms):
break

room = self.bot.bridge.rooms[i]
roominfo = self.bot.bridge.get_room(room)
if private and not roominfo['meta']['private']:
if (private and not roominfo['meta']['private']) or (not private and roominfo['meta']['private']):
continue

if private:
Expand Down

0 comments on commit fac717c

Please sign in to comment.