diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-10-14 12:41:37 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-10-14 12:43:39 +0200 |
commit | 958563a3602780b48599c27acf212139c2e6904d (patch) | |
tree | bc3b3e1209691c320122b4586972e275563cc867 /crocoite/cli.py | |
parent | 07994fb6b72b0c84d2ee2c69e5afdb204d33d5e6 (diff) | |
download | crocoite-958563a3602780b48599c27acf212139c2e6904d.tar.gz crocoite-958563a3602780b48599c27acf212139c2e6904d.tar.bz2 crocoite-958563a3602780b48599c27acf212139c2e6904d.zip |
irc: Add PoC dashboard
Using websockets, vue and bulma.
Diffstat (limited to 'crocoite/cli.py')
-rw-r--r-- | crocoite/cli.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py index 913db7c..6365c78 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -142,3 +142,11 @@ def irc (): loop.add_signal_handler (signal.SIGTERM, stop, signal.SIGTERM) loop.run_until_complete(bot.run ()) +def dashboard (): + from .irc import Dashboard + + loop = asyncio.get_event_loop() + d = Dashboard (sys.stdin, loop) + loop.run_until_complete(d.run ()) + loop.run_forever() + |