Luna Mendes
800da730df
litecord.jobs: add wrapper for logging errors
2018-11-16 16:54:20 -03:00
Luna Mendes
247523c181
config.example.py: add REGISTRATIONS field to Config
2018-11-16 16:49:56 -03:00
Luna Mendes
109a56db4c
config: add REGISTRATIONS config check in register bp
2018-11-16 16:48:32 -03:00
Luna Mendes
2f972fc735
storage: use get_member_data_one
2018-11-15 18:36:11 -03:00
Luna Mendes
8dcb8cd72d
README: fix typo and wording on websocket test
2018-11-15 18:09:51 -03:00
Luna Mendes
5f9e04b866
README: add "Checking if it is working" section
...
Related to #18 .
2018-11-15 18:08:12 -03:00
Luna Mendes
02d37091a7
pyflakes pass
2018-11-15 00:43:46 -03:00
Luna Mendes
7333651a7d
.gitlab-ci.yml: try to fix pillow by adding -dev packages
2018-11-15 00:31:02 -03:00
Luna Mendes
eed4912440
litecord.storage: give pinned value
2018-11-15 00:07:48 -03:00
Luna Mendes
31042e4129
litecord.storage: only query secure fields when actually secure=True
2018-11-14 23:44:35 -03:00
Luna Mendes
40ea0ac603
user.billing_job: fix logcall
2018-11-14 23:27:57 -03:00
Luna Mendes
61d553efb8
gateway.websocket: account for sharding in _guild_ids
...
Closes #1
2018-11-14 23:24:38 -03:00
Luna Mendes
a50cf8a17c
user.billing: use db instead of app instance in create_payment
2018-11-14 22:56:41 -03:00
Luna Mendes
0ec615f3bd
user.billing: add create_payment
...
- user: add billing_job for recurring payments (monthly or weekly)
- user.billing: make main functions accept external db object
- user.billing: fix get_payment's fields
- litecord: add job module with JobManager
2018-11-14 19:49:36 -03:00
Luna Mendes
976f8d0ed8
user.billing: fix get_ functions
...
- user.billing: add implementation for create_subscription
2018-11-14 16:36:25 -03:00
Luna Mendes
b9ef4c6d8c
litecord.blueprints: split users bp into user sub-bp
...
- blueprints.user: add biling bp
- blueprints.user: add settings bp
- schema.sql: add user_payment_sources, user_subscriptions,
user_payments
2018-11-14 03:43:40 -03:00
Luna Mendes
49aa6cd495
blueprints.users: add user avatars
...
- images: add IconManager.update
- images: delete all other converted extension variants when deleting
2018-11-13 21:52:50 -03:00
Luna Mendes
aaeca125ef
gitignore: add images dir
2018-11-13 21:15:30 -03:00
Luna Mendes
5480a669a3
all: add guild icon support
...
- fix update_guild's methods
- fix update_guild's sql statements
- litecord: add images module
- schemas: add splash to GUILD_UPDATE
- schemas: add validate to INVITE
- manage.cmd.migration: add script 2
2018-11-13 21:12:40 -03:00
Luna Mendes
e54bcc312a
blueprints: add icons blueprint
...
- Pipfile: add pillow
2018-11-13 17:33:28 -03:00
Luna Mendes
e694348274
channel.messages: use args in query_tuple_from_args
2018-11-13 15:35:56 -03:00
Luna Mendes
e7929b2099
schema.sql: fix table ordering
2018-11-13 04:34:26 -03:00
Luna Mendes
cd08c657b1
.gitlab-ci.yml: use postgres hostname on psql
2018-11-13 04:28:50 -03:00
Luna Mendes
5aa1713133
.gitlab-ci.yml: add db initalization
2018-11-13 04:23:00 -03:00
Luna Mendes
797810df2c
.gitlab-ci.yml: add git
2018-11-13 04:18:07 -03:00
Luna Mendes
b58a0c5c84
.gitlab-ci.yml: add libffi-dev, openssl-dev
2018-11-13 04:14:15 -03:00
Luna Mendes
c4b90d674a
.gitlab-ci.yml: remove python3.7-dev
2018-11-13 04:09:44 -03:00
Luna Mendes
cdad58bbc3
.gitlab-ci.yml: dunno maybe that works
2018-11-13 04:07:15 -03:00
Luna Mendes
893e96f8ec
.gitlab-ci.yml: add cache related configs
...
taken from gitlab's default python ci config
2018-11-13 04:01:21 -03:00
Luna Mendes
b9ccbbf53b
Pipfile.lock: update it due to asyncpg update
2018-11-13 03:58:26 -03:00
Luna Mendes
e7c51381e3
first try at a gitlab ci config
...
- Pipfile: update asyncpg from 0.16.0 to 0.18.2
2018-11-13 03:52:45 -03:00
Luna Mendes
fb6a31a377
tests: add test_no_tracking.py
2018-11-13 02:53:53 -03:00
Luna Mendes
e6c82cb3de
remove utils/useradd.py
...
manage.py superseedes it.
2018-11-13 02:11:39 -03:00
Luna Mendes
46759a4e7c
pylint pass
...
fixing unused imports across all code
2018-11-13 01:40:31 -03:00
Luna Mendes
40f7efd1df
tests: add test_ratelimits, test_gateway
...
- tests: use event_loop fixture instead of get_event_loop
- tests: move custom fixtures to conftest
2018-11-13 01:10:43 -03:00
Luna Mendes
77a72f6a1d
manage.cmd: add users and tests subparsers
...
- litecord.auth: add hash_data, check_username_usage
- litecord.auth: add create_user
- tests: add credentials.py
2018-11-12 19:25:02 -03:00
Luna Mendes
8d64be1520
README: change tox from pipenv to global env
...
pipenv knows when its inside a virtual environment itself so we can pull
that trick off.
2018-11-12 18:15:04 -03:00
Luna Mendes
29b5f4cfb6
Pipfile: add pyflakes
...
- requirements: add pipenv so tox can use it when running
- add setup.py
- add tox.ini
2018-11-12 18:11:04 -03:00
Luna Mendes
1711192ac9
tests.test_main: fix testing
2018-11-12 17:39:30 -03:00
Luna Mendes
7bd8b456a2
Pipfile: lock quart to a commit
...
Quart 0.6.9 has issues with hypercorn due to it not implementing
ASGILifespan.
- Pipfile: move pytest and pytest-asyncio to dev-packages
2018-11-12 16:44:29 -03:00
Luna Mendes
62332e15c3
run: add set_blueprints
2018-11-12 04:26:16 -03:00
Luna Mendes
7b75202311
tests: add basic test
2018-11-12 04:10:31 -03:00
Luna Mendes
599989f32e
Pipfile: add pytest and pytest-asyncio
2018-11-12 02:50:14 -03:00
Luna Mendes
1b637ef3cc
pubsub.lazy_guild: remove print and pprint calls
2018-11-12 02:08:48 -03:00
Luna Mendes
fad8484a74
pubsub.lazy_guild: use SYNC instead of DELETE->INSERT->DELETE
...
This makes our implementation go off-spec (depends on what you'd even
call a spec, considering lazy guilds are not documented and probably
won't be), but well... *it works*
There are also a lot of print-debugs on this commit, will clean them up.
- pubsub.lazy_guild: filter empty groups out of items list
- pubsub.lazy_guild: check operator's op on Operation.to_dict
- pubsub.lazy_guild: add resync() method to deal with re-SYNCs easily
- pubsub.lazy_guild: fix get_item_index and get_group_item_index
- pubsub.lazy_guild: drop the ops in complex presence updates in favour
of using resync()
- pubsub.lazy_guild: resync on group resorting
- pubsub.lazy_guild: use resync() on role delete
2018-11-12 02:02:56 -03:00
Luna Mendes
ea6e228bb4
pubsub.lazy_guild: use member ids instead of presences on main list
2018-11-11 00:14:59 -03:00
Luna Mendes
864f6a5d9f
guild.members: add basic handling of nicks in lazy guilds
...
- pubsub.lazy_guilds: add a list lock to prevent inconsistencies
- pubsub.lazy_guilds: add a lot of debug info related to list sorting
2018-11-09 19:02:26 -03:00
Luna Mendes
f34c3f6296
pubsub.lazy_guilds: fix role_delete not finding group for role
...
- pubsub.lazy_guilds: add presence reassignment on role_delete
- pubsub.lazy_guilds: fix getting role_range due to incorrect operators
2018-11-09 17:18:35 -03:00
Luna Mendes
58c818bb68
guild.members: call pres_dispatch on role updates
...
- presence: fix 'everyone' list detection
2018-11-09 16:38:19 -03:00
Luna Mendes
7103ac01ca
pubsub.lazy_guild: sort groups in decreasing position order
2018-11-09 04:33:29 -03:00