mirror of https://gitlab.com/litecord/litecord.git
Lots of changes to get it working.
One day changes will be able to be small enough to be split across
commits.
- enums: use enum.Enum, make EasyEnum subclass
- enums: add ActivityType, ActivityFlags, StatusType
- gateway.state: use 128 random bits instead of 256
- gateway.state: add MAX_STORE_SIZE in PayloadStore and check it when
adding a new payload
- gateway.websocket: add GatewayWebsocket.update_status
- presence: add PresenceManager.dispatch_guild_pres and
PresenceManager.dispatch_pres
- schema: add snowflake, activity_type, status_external types
- schema: add GW_ACTIVITY, GW_STATUS_UPDATE
- storage: fix _channels_extra and fixes for ChannelType as enum instead of
class
|
||
|---|---|---|
| litecord | ||
| .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/lnmds/litecord.git && cd litecord
# Setup the database:
$ createdb litecord
$ psql -f schema.sql litecord
# Configure litecord:
$ 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