mirror of
https://github.com/maubot/rss.git
synced 2025-02-18 13:54:08 -05:00
Use different message when there are no subscriptions
This commit is contained in:
parent
9a75ee4021
commit
7b609ebb24
@ -446,6 +446,9 @@ class RSSBot(Plugin):
|
||||
)
|
||||
async def command_subscriptions(self, evt: MessageEvent) -> None:
|
||||
subscriptions = await self.dbm.get_feeds_by_room(evt.room_id)
|
||||
if len(subscriptions) == 0:
|
||||
await evt.reply("There are no RSS subscriptions in this room")
|
||||
return
|
||||
await evt.reply(
|
||||
"**Subscriptions in this room:**\n\n"
|
||||
+ "\n".join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user