2020-07-01 19:37:02 +00:00
|
|
|
# Copyright (C) 2020 by Thomas Lindner <tom@dl6tom.de>
|
|
|
|
# Copyright (C) 2020 by Cathy Hu <cathy.hu@fau.de>
|
2020-09-28 22:54:34 +00:00
|
|
|
# Copyright (C) 2020 by Martin Rey <martin.rey@mailbox.org>
|
2020-07-01 19:37:02 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: 0BSD
|
|
|
|
|
|
|
|
from kibicara.platformapi import Censor, Spawner
|
2020-10-13 08:35:20 +00:00
|
|
|
from kibicara.platforms.test.model import Test
|
2020-07-01 19:37:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
class TestBot(Censor):
|
|
|
|
def __init__(self, test):
|
|
|
|
super().__init__(test.hood)
|
|
|
|
self.messages = []
|
|
|
|
|
|
|
|
async def run(self):
|
|
|
|
while True:
|
|
|
|
self.messages.append(await self.receive())
|
|
|
|
|
|
|
|
|
|
|
|
spawner = Spawner(Test, TestBot)
|