mirror of https://gitlab.com/litecord/litecord.git
users can now join guilds!
invites:
- add GET /api/v6/invites/<invite_code>
- add DELETE /api/v6/invites/<invite_code>
- add GET /api/v6/guilds/<guild_id>/invites
- add GET /api/v6/channels/<channel_id>/invites
- add POST /api/v6/invite/<invite_code>
storage:
- add verification_level to invites
- add empty invite.guild.features
gateway.state_manager:
- add StateManager.user_states
- give a dummy offline state on guild_states
- this makes it possible for people to see offline members even when
those members never logged in (since the would have no state being
reffered to them)
- gateway.websocket: use get_member_ids on lazy guild handler
- auth: add GET /api/v6/auth/consent-required
- dispatcher: add dispatch_user_guild and dispatch_user
- run: use Origin header on Access-Control-Allow-Origin
|
||
|---|---|---|
| litecord | ||
| utils | ||
| .gitignore | ||
| LICENSE | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
| config.example.py | ||
| nginx.conf | ||
| run.py | ||
| schema.sql | ||
README.md
litecord
Litecord is an open source implementation of Discord's backend and API in Python.
This project is a rewrite of litecord-reference.
Install
- Python 3.6 or higher
- PostgreSQL
- Pipenv
$ git clone https://gitlab.com/luna/litecord.git && cd litecord
# Setup the database:
# don't forget that you can create a specific
# postgres user just for the litecord database
$ createdb litecord
$ psql -f schema.sql litecord
# Configure litecord:
# edit config.py as you wish
$ cp config.example.py config.py
# Install all packages:
$ pipenv install --dev
Running
Hypercorn is used to run litecord. By default, it will bind to 0.0.0.0:5000.
You can use the -b option to change it (e.g. -b 0.0.0.0:45000).
Use --access-log - to output access logs to stdout.
$ pipenv run hypercorn run:app