diff --git a/examples/simple.py b/examples/simple.py index f04f83e..a852731 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -12,10 +12,14 @@ SERVERS = [ class Bot(BaseBot): async def line_read(self, server: Server, line: Line): + print(f"{server.name}< {line.format()}") if line.command == "001": print(f"connected to {server.isupport.network}") await server.send(build("JOIN", ["#testchannel"])) + async def line_send(self, server: Server, line: Line): + print(f"{server.name}> {line.format()}") + async def main(): bot = Bot() for name, host in SERVERS: