Make "requester" parameter optional
This commit is contained in:
parent
b79a6b9494
commit
8bbac829cc
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
maubot: 0.18.0
|
maubot: 0.18.0
|
||||||
id: me.s3lph.spaceapi
|
id: me.s3lph.spaceapi
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
license: MIT
|
license: MIT
|
||||||
modules:
|
modules:
|
||||||
- spaceapi
|
- spaceapi
|
||||||
|
|
|
@ -89,7 +89,7 @@ class SpaceapiBot(Plugin):
|
||||||
changed = (now['state']['open'] != previous['state']['open'])
|
changed = (now['state']['open'] != previous['state']['open'])
|
||||||
return now, changed
|
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:
|
if requester:
|
||||||
room = requester.room_id
|
room = requester.room_id
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue