From 7ba12986dc9fb389f0b6f74cd499dca96ed03767 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 24 Jul 2025 21:26:02 +0200 Subject: [PATCH] Update. --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ main.py => snek_cli.py | 0 2 files changed, 38 insertions(+) create mode 100644 README.md rename main.py => snek_cli.py (100%) diff --git a/README.md b/README.md new file mode 100644 index 0000000..1a77acb --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# Snekbot CLI Client + +Simple asynchronous CLI client for Snekbot, connecting via WebSocket for channel messaging. + +## Features +- Login with username/password +- List/join channels +- Send/receive messages with Markdown-to-ANSI formatting +- Commands: `/join `, `/channels`, `/quit` + +## Requirements +- Python 3.12+ +- Libraries: `asyncio`, `aiohttp`, `getpass`, `logging`, `re`, `sys`, `traceback`, `typing` + +## Installation +Clone repo and run script: +``` +git clone +cd +python snek_cli.py +``` + +## Usage +Run script, enter username/password: +``` +Username: your_username +Password: your_password +``` +Connects to `wss://snek.molodetz.nl/rpc.ws`. + +In CLI: +- `/channels` to list +- `/join ` to switch +- Type message to send +- `/quit` to exit + +## Code +Single file: `snek_cli.py` diff --git a/main.py b/snek_cli.py similarity index 100% rename from main.py rename to snek_cli.py