mirror of
https://github.com/maubot/rss.git
synced 2025-11-29 06:46:31 -05:00
Use different message when there are no subscriptions
This commit is contained in:
parent
9a75ee4021
commit
7b609ebb24
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue