From 5702b6ad7f60dcc52ddbfe9cbedf13750ef84532 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 15 Nov 2020 23:39:02 +0100 Subject: [PATCH] Simplify using the curses client to connect to current demo server. --- rogue_chat_curses.py | 3 ++- rogue_chat_curses.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 rogue_chat_curses.sh diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 0644a4c..e0f2f6a 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -762,4 +762,5 @@ class TUI: self.send('TASK:WRITE %s %s' % (key, quote(self.password))) self.switch_mode('play') -TUI('localhost:5000') +#TUI('localhost:5000') +TUI('wss://plomlompom.com/rogue_chat/') diff --git a/rogue_chat_curses.sh b/rogue_chat_curses.sh new file mode 100755 index 0000000..fa78c01 --- /dev/null +++ b/rogue_chat_curses.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# thin wrapper around running the curses client with dependencies installed +python3 -m venv .venv +. .venv/bin/activate +pip install -r requirements_client.txt +./rogue_chat_curses.py -- 2.30.2