MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / __init__

Method __init__

tests/mocks/slave.py:32–42  ·  view source on GitHub ↗
(self, instance_id=None)

Source from the content-addressed store, hash-verified

30 }
31
32 def __init__(self, instance_id=None):
33 super().__init__(instance_id)
34 self.alice = PrivateChat(channel=self, name="Alice", uid="alice")
35 self.bob = PrivateChat(channel=self, name="Bob", alias="Little bobby", uid="bob")
36
37 self.wonderland = GroupChat(channel=self, name="Wonderland", uid="wonderland001")
38 self.wonderland.add_member(name="bob", alias="Bob James", uid="bob")
39 self.carol = self.wonderland.add_member(name="Carol", uid="carol")
40 self.dave = self.wonderland.add_member(name="デブ", uid="dave") # Nah, that's a joke
41
42 self.chats: List[Chat] = [self.alice, self.bob, self.wonderland]
43
44 def poll(self):
45 self.polling.wait()

Callers

nothing calls this directly

Calls 3

PrivateChatClass · 0.90
GroupChatClass · 0.90
add_memberMethod · 0.80

Tested by

no test coverage detected