Luna Mendes
c4a63016ea
config.example.py: add MAIN_URL
2018-11-18 17:07:18 -03:00
Luna Mendes
339d1b0c8b
blueprints: add nodeinfo blueprint
2018-11-18 17:04:31 -03:00
Luna Mendes
3432617988
channel.messages: handle at-everyone and at-here differently
...
- blueprints.checks: return bool on *_perm_check
2018-11-18 02:38:30 -03:00
Luna Mendes
8492b6eb33
channel.messages: handle role mentions and at-everyone mentions
2018-11-18 02:25:32 -03:00
Luna Mendes
9db9c75602
gateway.websocket: fix extracting guild ids when handling op 8
2018-11-18 01:24:32 -03:00
Luna Mendes
500579e957
channel.messages: fix mention affecting user_read_state
2018-11-18 01:20:02 -03:00
Luna Mendes
66ea960f71
gateway.websocket: anoter Storage -> UserStorage
2018-11-18 01:05:53 -03:00
Luna Mendes
0449fad9a3
Revert ".gitlab-ci.yml: drop pipenv install pre-script"
...
This reverts commit d11f8692e4 .
2018-11-17 22:42:57 -03:00
Luna Mendes
d11f8692e4
.gitlab-ci.yml: drop pipenv install pre-script
...
we're pratically installing packages twice for no reason, since tox
will also run pipenv install on its environment.
2018-11-17 18:53:26 -03:00
Luna Mendes
0aa679677f
user_storage: add UserStorage.get_user_guilds
...
So that we're consistent.
- gateway.websocket, presence: change to UserStorage for
get_user_guilds
2018-11-17 18:41:54 -03:00
Luna Mendes
9547b5e536
tests: add test_user
...
- tests.common: add get_uid
2018-11-17 18:39:09 -03:00
Luna Mendes
976e518fad
users: change Storage -> UserStorage
2018-11-17 18:31:43 -03:00
Luna Mendes
1288e401ea
user.billing_job: change reschedule for payment_job from 2min to 30min
2018-11-17 18:29:55 -03:00
Luna Mendes
cc535bb851
schema.sql: add UNIQUE to icons.hash
2018-11-17 18:27:37 -03:00
Luna Mendes
630db1e1e9
images: add always_icon kwarg to put()
...
- guilds: use always_icon
2018-11-17 18:26:42 -03:00
Luna Mendes
1e368f8cc9
images: return None on invalid icon data when put()-ing
...
- guild.emoji: send 400 on invalid icon
2018-11-17 18:21:20 -03:00
Luna Mendes
d9a1923e54
images: add bytelimit
...
- guild.emoji: add 128x128 limit and 128kb limit
- types: add KILOBYTES
2018-11-17 18:19:47 -03:00
Luna Mendes
d3bc826504
blueprints.icons: send none hash when querying emoji
...
- images: handle hash being none on generic_get
2018-11-17 18:10:54 -03:00
Luna Mendes
1175de1406
guild.emoji: fix args to IconManager.put
2018-11-17 18:07:04 -03:00
Luna Mendes
b6f2d5fdd8
storage: s/guild_emojis/guild_emoji table
2018-11-17 18:03:02 -03:00
Luna Mendes
1cef25ffc4
user.billing_job: fix unwanted await due to spawn() being non-coro
2018-11-17 18:01:53 -03:00
Luna Mendes
041791b733
litecord.user_storage: fix get_relationships
2018-11-17 18:00:04 -03:00
Luna Mendes
c70dd62306
guild: add implementations for emoji add/update/remove
...
All icons will be invalidated.
- images: change icon path model
- images: handle hashes being NULL, for emojis only needing
the key
- schemas: add NEW_EMOJI, PATCH_EMOJI
- migration.scripts: add 3_drop_constraints_icons_hash
- schema.sql: drop unique and not null from hash, change primary key in
icons
2018-11-17 17:52:34 -03:00
Luna Mendes
64af426035
guild: add emoji blueprint
...
- storage: add get_emoji, get_guild_emojis
2018-11-17 17:06:27 -03:00
Luna Mendes
a7f8852324
test.test_websocket: add test_ready_fields
...
- RatelimitManager: add a test flag to overwrite _ws.connect ratelimit
2018-11-17 04:09:22 -03:00
Luna Mendes
978ad9075e
gateway.websocket: fix more Storage -> UserStorage references
2018-11-17 03:10:45 -03:00
Luna Mendes
77c52a5c28
tests.test_websocket: add test_ready
2018-11-17 03:05:54 -03:00
Luna Mendes
069c39d29e
tests: add test_websocket.py
...
- tests.conftest: alter WEBSOCKET_URL as well
2018-11-17 02:51:07 -03:00
Luna Mendes
00c976c552
gateway.gateway: add default args when connecting
...
- gateway.gateway: pass app instance instead of a 7-tuple
2018-11-17 02:20:48 -03:00
Luna Mendes
11d4b54f87
split Storage into UserStorage
...
this should help with the amount of methods being tossed in the Storage
class.
2018-11-17 02:14:10 -03:00
Luna Mendes
404720c54d
user.billing_job: handle CancelledError
2018-11-17 00:03:18 -03:00
Luna Mendes
bf661fa237
gateway.websocket: use non-whitespace separators on encode_json
...
decreases overall bytes needed to send a payload
2018-11-16 17:18:20 -03:00
Luna Mendes
bf8eca95b1
gateway.websocket: add GatewayWebsocket.send_op
2018-11-16 17:14:46 -03:00
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