diff --git a/janine/modules/janine/janine.py b/janine/modules/janine/janine.py index 8fddde0..303c399 100644 --- a/janine/modules/janine/janine.py +++ b/janine/modules/janine/janine.py @@ -111,7 +111,7 @@ class JanineModule(BaseModule): if warning.id in ids: continue - for jid, _ in self._sum.get_subscriptions_for_keywords(warning.landkreise): + for jid in self._sum.get_subscriptions_for_keywords(warning.landkreise): body = format_warning(warning) self.send_message(aioxmpp.JID.fromstr(jid), body) @@ -128,7 +128,7 @@ class JanineModule(BaseModule): return bare = str(msg.from_.bare()) - if self._sum.is_subscribed_to(bare, landkreis): + if self._sum.is_subscribed_to_keyword(bare, landkreis): self.send_message( msg.from_, 'Du hast den "%s" bereits abonniert' % (landkreis) ) @@ -147,7 +147,7 @@ class JanineModule(BaseModule): landkreis = " ".join(cmd[1:]) bare = str(msg.from_.bare()) - if not self._sum.is_subscribed_to(bare, landkreis): + if not self._sum.is_subscribed_to_keyword(bare, landkreis): self.send_message(msg.from_, 'Du hast "%s" nicht abonniert' % (landkreis)) return diff --git a/setup.py b/setup.py index 7a3198f..f4e8fb0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( license = 'GPLv3', packages = find_packages(), install_requires = [ - 'mira>=0.2.0', + 'git+https://git.polynom.me/PapaTutuWawa/mira.git@0.3.0', 'requests>=2.23.0' ], zip_safe=True