From 8bbac829cc7ac0c19eac6016b671f7a513bb59db Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 17 Jan 2022 01:05:45 +0100 Subject: [PATCH] Make "requester" parameter optional --- me.s3lph.spaceapi/maubot.yaml | 2 +- me.s3lph.spaceapi/spaceapi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/me.s3lph.spaceapi/maubot.yaml b/me.s3lph.spaceapi/maubot.yaml index c576509..718991a 100644 --- a/me.s3lph.spaceapi/maubot.yaml +++ b/me.s3lph.spaceapi/maubot.yaml @@ -1,6 +1,6 @@ maubot: 0.18.0 id: me.s3lph.spaceapi -version: 0.1.0 +version: 0.1.1 license: MIT modules: - spaceapi diff --git a/me.s3lph.spaceapi/spaceapi.py b/me.s3lph.spaceapi/spaceapi.py index f2ef988..b88c3f6 100644 --- a/me.s3lph.spaceapi/spaceapi.py +++ b/me.s3lph.spaceapi/spaceapi.py @@ -89,7 +89,7 @@ class SpaceapiBot(Plugin): changed = (now['state']['open'] != previous['state']['open']) return now, changed - async def send_spaceapi_update(self, state: object, requester: MessageEvent) -> None: + async def send_spaceapi_update(self, state: object, requester: MessageEvent = None) -> None: if requester: room = requester.room_id else: