Use different message when there are no subscriptions

This commit is contained in:
Tulir Asokan 2022-03-26 17:19:32 +02:00
parent 9a75ee4021
commit 7b609ebb24

View File

@ -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(