Remove invalid await

This commit is contained in:
Sophie Tauchert 2023-01-14 14:24:00 +01:00
parent 7006689f21
commit c83f3cfcdf
No known key found for this signature in database
GPG key ID: 52701DE5F5F51125

View file

@ -93,7 +93,7 @@ class NtfyBot(Plugin):
await evt.reply("Subscribed this room to %s/%s", server, topic) await evt.reply("Subscribed this room to %s/%s", server, topic)
await evt.react(WHITE_CHECK_MARK) await evt.react(WHITE_CHECK_MARK)
if not existing_subscriptions: if not existing_subscriptions:
await self.subscribe_to_topic(db_topic) self.subscribe_to_topic(db_topic)
@ntfy.subcommand("unsubscribe", aliases=("unsub",), help="Unsubscribe this room from a ntfy topic.") @ntfy.subcommand("unsubscribe", aliases=("unsub",), help="Unsubscribe this room from a ntfy topic.")
@command.argument("topic", "topic URL", matches="(([a-zA-Z0-9-]{1,63}\\.)+[a-zA-Z]{2,6}/[a-zA-Z0-9_-]{1,64})") @command.argument("topic", "topic URL", matches="(([a-zA-Z0-9-]{1,63}\\.)+[a-zA-Z]{2,6}/[a-zA-Z0-9_-]{1,64})")