Skip to content

Commit

Permalink
fix(satori): fix attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 20, 2023
1 parent fee6fc0 commit ff84c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions avilla/satori/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SatoriService(App):

def __init__(self, protocol: SatoriProtocol):
self.protocol = protocol
self._accounts = {}
super().__init__()
self.register(self.handle_event)
self.lifecycle(self.handle_lifecycle)
Expand Down
5 changes: 2 additions & 3 deletions test-satori.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


config = SatoriConfig(
"localhost",
5140,
"localhost",
5500,
)
avilla = Avilla(message_cache_size=0)
avilla.apply_protocols(SatoriProtocol().configure(config))
Expand All @@ -15,7 +15,6 @@
async def on_message_received(cx: Context, event: MessageSent):
print(cx.endpoint, cx.client)
print(event.message.content)
#if cx.client.follows("::public.channel.member(3165388245)"):
if event.message.content.startswith("test"):
print(
await cx.scene.send_message(
Expand Down

0 comments on commit ff84c4d

Please sign in to comment.