From f295e31cce0f4c29c3127f59d3ec905413bf2535 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 20 Nov 2023 17:50:38 +0100 Subject: [PATCH] fix: remove example which doesn't apply anymore --- examples/chat_printer.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/chat_printer.py diff --git a/examples/chat_printer.py b/examples/chat_printer.py deleted file mode 100644 index cb5ca6c..0000000 --- a/examples/chat_printer.py +++ /dev/null @@ -1,22 +0,0 @@ -""" -A super simple MinecraftClient exmaple. -Will connect to a server and print chat messages. -Requires an authorization code to login -""" -import sys - -from aiocraft.client import MinecraftClient -from aiocraft.mc.proto import PacketChat -from aiocraft.util.helpers import parse_chat - -server = sys.argv[1] -login_code = sys.argv[2] # Check authenticator.py example - -app = MinecraftClient(server, login_code=login_code) - -@app.on_packet(PacketChat) -async def on_chat(packet: PacketChat): - print(parse_chat(packet.message, ansi_color=True)) - -app.run() -