Commit Graph

115 Commits

Author SHA1 Message Date
Luna 8bdfdfa4ec enable raw tls on websocket 2021-10-09 12:59:48 -03:00
Cynthia Foxwell f162f0ab60 Update license headers 2021-09-24 11:33:06 -06:00
Luna 587aac380f add store blueprint 2021-08-29 16:47:15 -03:00
Luna 2a71d9f131 add applications stub blueprint 2021-08-29 15:05:46 -03:00
Luna 1818f93019 add stickers stub blueprint 2021-08-29 14:59:37 -03:00
Luna 87b1257e06 move code to dedicated read_states blueprint 2021-07-10 23:28:17 -03:00
Luna abd2eb94e3 allow api v9 2021-06-25 16:09:41 -03:00
Luna 1a2e7446c7 fix winter usage across codebase 2021-06-25 15:32:29 -03:00
Luna 88d6a19415 don't use copy_current_app_context
in some scenarios, the app context might not be there yet, it's easier
to use the global app instance and embed it in JobManager instead
2020-07-29 18:42:28 -03:00
Luna c1f29d145e fix api_index() accessing wrong fields 2020-06-26 22:30:41 -03:00
Luna b0eb3247fd remove code from dispatcher
leftovers are TBD.

 - constrict Dispatcher.dispatch() to arity 3
 - add helper methods to Dispatcher
 - add EventType to Dispatcher

While fixing things, it was discovered that many of the things inside
LazyGuildDispatcher were just interfaces to GuildMemberList, in a very
weird way, just so it could be fitted inside the main Dispatcher. it was
decided to remove those unecessary interfaces, clients shall use the
manager directly.
2020-02-09 21:20:08 +00:00
Luna f6f50a1cff remove app param from billing functions 2019-10-25 11:23:40 -03:00
Luna ce04ac5c5f remove app param from guild_region_check() 2019-10-25 10:52:46 -03:00
Luna 83a1c1ae29 black fmt pass 2019-10-25 07:27:50 -03:00
Luna c10806e0de run: add support for x-ratelimit-precision header 2019-08-13 12:24:03 -03:00
Luna 195a219f75 add ability to purposefully disable voice initialization
there is an issue (not very urgent) where a traceback was shown at any
`manage.py` usage. this was not catched before because of recent
modifications that removed manager startup when calling `migrate`.
2019-04-22 16:27:50 -03:00
Luna 4a50ceeb67 Add basic guild available updates
- add litecord.guild_memory_store
 - storage: add fetch of unavailable field
2019-04-21 22:38:41 -03:00
Luna 8c43bdcee7 webhooks: fix unpack order
- run: add warn calls for expected errors
2019-03-18 17:50:59 -03:00
Luna 5fb27c04a2 add admin_api.{users, instance_invites} blueprints
- admin_schemas: add USER_CREATE
2019-03-16 16:45:13 -03:00
Luna 16e583179c schemas: fix coerce
- run: change features_admin base to /admin/guilds
2019-03-11 02:12:09 -03:00
Luna 073f47e0f5 add draft for features_admin and add guilds_admin 2019-03-09 04:09:55 -03:00
Luna bbf80f72b1 fix tests and an ugly circular import 2019-03-04 05:24:40 -03:00
Luna ad7f93b40a add guild.region = null consistency checker
as soon as a voice region is added, we should move all guilds to it. or
if there are any guilds with a NULL region, we select one at random.

region being NULL causes the client to be unable to change it, so..

 - channels: fix update handlers for guild channels
2019-03-04 03:00:46 -03:00
Luna cb029b36e3 add admin api (w/ voice endpoints)
- add docs/admin_api.md
 - add litecord.voice_schemas
 - auth: add admin_check
 - voice.manager: add VoiceManager.voice_server_list
2019-03-04 00:37:56 -03:00
Luna f22a9b92a9 remove voice websocket fields from configs
- run: remove vws spawn
 - tests.conftest: rollback to unused_tcp_port fixture
2019-03-01 04:39:12 -03:00
Luna cbf6a3d441 run: remove unused loop variable 2019-02-28 23:14:56 -03:00
Luna ca5386d3ce add VOICE_WEBSOCKET_URL to configs
- gateway: remove implicit /ws path, leave it up to configs
 - run: fix start_websocket
2019-02-28 23:12:19 -03:00
Luna f3bc65302d add voice websocket instantiation 2019-02-28 21:16:32 -03:00
Luna 0d38c7cc0c gateway.websocket: add basic vsu handling
this adds *theoretical* interfaces to a VoiceManager. The actual
VoiceManager does not work and probably any VSU being sent over will
crash the websocket with an AttributionError.

 - enums: add VOICE_CHANNELS
 - run: add App.voice attribute
2019-02-28 20:51:09 -03:00
Luna 8c7ae9b76c add dm_channels blueprint 2019-02-08 18:20:26 -03:00
Luna a69a2423de run.py: fix other peace of mind things 2019-02-03 22:50:45 -03:00
Luna d95b6adb16 run.py: only pass app instance to PresenceManager
- presence: only receive app when instantiating
2019-02-03 22:44:43 -03:00
Luna 6ee5b2fa15 run.py: sanity of mind tweaks 2019-02-03 22:42:24 -03:00
Luna 53d7515f8c all: update copyright year 2019-01-26 19:25:46 -03:00
Luna 6c992588e9 channel.messages: fix insertion into attachments table
- channel.messages: add file write
 - images: make get_ext and get_mime public functions
 - storage: receive app instance instead of db
2018-12-08 23:38:52 -03:00
Luna b6dd495121 run: register attachments bp 2018-12-08 23:13:48 -03:00
Luna 2632d033fa all: add GPL header 2018-12-07 02:14:58 -03:00
Luna e2720a4084 embed.sanitizer: fix double-slash on path
- run: add app.session
2018-12-05 03:08:54 -03:00
Luna 5db633b797 channel.messages: use sanitize_embed
- embed: add sanitizer module
 - embed.schemas: add to_json to EmbedURL
 - utils: add custom JSON encoder
 - run: use custom JSON encoder
 - gateway.websocket: use custom JSON encoder
2018-12-04 21:45:14 -03:00
Luna df382a7a5f user: add fake_store bp
this should solve problems with 404's.
2018-11-30 17:33:23 -03:00
Luna Mendes 2852f57f96 static: add handler for index using jinja / render_template
- static: add index.html
 - run: remove index handler
2018-11-21 21:31:11 -03:00
slice 10d4771c0c
Add X-Debug-Options as an allowed header 2018-11-20 12:29:30 -08:00
Luna Mendes 3e28501bdb run: replace other/peer to user
- discord_endpoints: remove ambiguity on PUT/PATCH Modify Channel route
2018-11-20 14:52:35 -03:00
Luna Mendes 437f8de643 run: replace member/banned/target to user in api_index 2018-11-20 14:48:44 -03:00
Luna Mendes deddc82360 run: add api compliance score
Closes #21.
2018-11-20 14:32:32 -03:00
slice 2f377e1d69
return status code 500 when handling http 500s 2018-11-18 23:44:48 -08:00
Luna Mendes 6921f3b6b1 run: remove unused import
- static.invite_register: retab
2018-11-19 01:47:35 -03:00
Luna Mendes 2ff7f796fc run: add static blueprint to set_blueprints
- run: remove old handler for /register
2018-11-19 01:40:31 -03:00
Luna Mendes e949dbdc3f blueprints.auth: add *dummy* POST /api/v6/auth/register_inv
- litecord.schemas: add REGISTER, REGISTER_WITH_INVITE
 - run: add GET /register
 - add static/invite_register.html
2018-11-18 19:24:17 -03:00
Luna Mendes 339d1b0c8b blueprints: add nodeinfo blueprint 2018-11-18 17:04:31 -03:00