This commit is contained in:
retoor 2025-07-24 21:26:02 +02:00
parent 6fff57dd81
commit 7ba12986dc
2 changed files with 38 additions and 0 deletions

38
README.md Normal file
View File

@ -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 <channel>`, `/channels`, `/quit`
## Requirements
- Python 3.12+
- Libraries: `asyncio`, `aiohttp`, `getpass`, `logging`, `re`, `sys`, `traceback`, `typing`
## Installation
Clone repo and run script:
```
git clone <repo-url>
cd <repo-dir>
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 <name>` to switch
- Type message to send
- `/quit` to exit
## Code
Single file: `snek_cli.py`