Go to file
Luna Mendes 6f0528eaec gateway.websocket: detach app object from GatewayWebsocket
It doesn't work since quart's objects only work with stuff
that is already from quart, e.g the current_app stuff
requires you to be inside a special hidden context
that only quart functions get.

Gateway code is detached from quart since quart's websocket
stuff can't handle custom error codes.

 - auth: optional db detach
 - gateway.errors: add InvalidShard, ShardingRequired
 - gateway.gateway: pass asyncpg connection and StateManager
 - gateway.state: add repr, etc
 - gateway.state_man: add remove(), fetch_states()
2018-06-19 21:05:26 -03:00
litecord gateway.websocket: detach app object from GatewayWebsocket 2018-06-19 21:05:26 -03:00
.gitignore add schema.sql 2018-06-16 19:25:07 -03:00
LICENSE Initial Commit 👌 😂 2018-06-15 21:59:52 -03:00
Pipfile add basic gateway logic 2018-06-19 04:06:01 -03:00
Pipfile.lock add basic gateway logic 2018-06-19 04:06:01 -03:00
README.md migrate to pipenv 2018-06-16 16:36:41 -07:00
config.example.py blueprints.gateway: add implementations for gateway urls 2018-06-17 14:24:24 -03:00
run.py gateway.websocket: detach app object from GatewayWebsocket 2018-06-19 21:05:26 -03:00
schema.sql litecord.blueprints: add auth blueprint 2018-06-17 04:09:29 -03:00

README.md

litecord

Litecord is a free as in freedom implementation of Discord's backend services.

Rewrite of [litecord-reference]. [litecord-reference]: https://gitlab.com/lnmds/litecord-reference

Install

  • Python 3.6 or higher
  • PostgreSQL

We use [pipenv] to manage our dependencies. [pipenv]: https://github.com/pypa/pipenv

$ git clone https://gitlab.com/lnmds/litecord
$ cd litecord

# install all packages, including dev-packages
$ pipenv install --dev

Running

# drop into the virtualenv's shell
$ pipenv shell

# boot litecord
$ hypercorn run:app