Commit Graph

80 Commits

Author SHA1 Message Date
luna 85c2bc3e18 Merge branch 'master' into 'feat/max_concurrency'
# Conflicts:
#   manage/cmd/users.py
2022-08-13 21:49:22 +00:00
Bluenix 2fe50c4ac3 Add 'addbot' manage.py command 2022-01-27 14:40:26 +00:00
spiral e3f894330d
fix formatting 2021-11-10 00:44:54 -05:00
spiral 2ad6b29175
add manage command set_max_concurrency 2021-11-10 00:29:07 -05:00
Cynthia Foxwell f162f0ab60 Update license headers 2021-09-24 11:33:06 -06:00
spiral b468883e2e
gateway: add max_concurrency support 2021-09-24 13:04:00 -04:00
Luna 3e390caffe add migration to maintain data consistency on members
the tables that should refer to members aren't doing so because
they were declared before the members table itself.

this leads to data inconsistency as members leave or get kicked
or get banned from a guild, and the relevant rows on those tables
ARE NOT removed as well.
2021-09-20 23:07:31 -03:00
Evie Viau 53c49711cc Implement inline replies 2021-09-05 03:23:00 +00:00
Luna 1a0fe767c3 manage: add setflag and unsetflag commands 2021-09-02 21:44:34 -03:00
Luna 266bb0a07b migrations: add 11_user_bio_and_accent_color 2021-08-29 15:52:49 -03:00
Luna 106caea671 manage: add command to set user password 2021-06-25 16:16:37 -03:00
Luna 89ab7b820c fix roles.permissions' datatype to bigint 2020-07-29 15:28:31 -03:00
Luna c497fe62a5 Fix custom_status migration being overriden due to typo 2020-06-10 15:08:04 -03:00
George Tsatsis 46468f512b
As per !61#note_314891420 2020-03-31 22:14:13 +03:00
George Tsatsis d786edffec
Add discovery_splash 2020-03-31 01:11:57 +03:00
George Tsatsis 4ff1916ebe
Add preferred_locale field 2020-03-31 01:04:58 +03:00
George Tsatsis 92489d0f43
Add public updates channel (to server, not channel type) 2020-03-30 22:19:12 +03:00
George Tsatsis d9940b9d3f
Make rules_channel_id a bigint 2020-03-30 21:07:17 +03:00
George Tsatsis 324cf6d4fa
Create rules channel 2020-03-30 20:57:29 +03:00
Luna b1d1f4f228 add better docstring to update_status
- simplify logic to fetch game
 - safer getting when making final status
2020-03-14 20:05:14 +00: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 e42aadb6d0 migration.command: dont split on migration 0
(it's a hack)
2020-02-04 20:50:40 +00:00
Luna f1e6baffd2 move user functions to common.users 2019-10-25 13:48:22 -03:00
Luna 4286b5d283 manage.cmd.users: fix create_user call 2019-10-25 09:01:18 -03:00
Luna a3f793a211 remove some app and db params/kwargs from auth functions 2019-10-25 08:56:07 -03:00
Luna f54c002a31 remove app kwargs from delete_user and mass_user_update
- manage.cmd.users: don't send updates when deleting users

the rationale for this is that while we have an app.dispatcher, it is
fully empty since we created a mock just for manage.py operations. to
have proper side-effects occouring on the actual main app, we'd need to
implement some kind of IPC, and i'm not up for that task, yet.
2019-10-25 08:47:04 -03:00
Luna 78b45b022a manage: make FakeApp.config be the same thing as Quart.config 2019-10-25 08:41:49 -03:00
Luna c44e184e6e enable FakeApp to create Quart instances
- use a wrapper for app_context inside manager command handlers
2019-10-25 08:34:20 -03:00
Luna 0cc1062c52 flake8 pass
- fix test_empty_embed not actually reporting on empty embeds
2019-10-25 08:06:26 -03:00
Luna 83a1c1ae29 black fmt pass 2019-10-25 07:27:50 -03:00
Luna 0bc4b1ba3f manage.cmd.users, tests.conftest: follow new kwargs for delete_user 2019-09-30 10:55:12 -03:00
Luna 2c7b3f391e manage.cmd.users: s/disciminator/discrim 2019-09-13 21:39:22 -03:00
Luna ef6361dbda channels: update local message var when changing flags
- embed.messages: propagate payload.flags when updating msg embeds
 - enums: fix typo
 - channels: fix flag helper functions
 - storage: only fill res.member when user_id is given
 - storage: sentinel value is 0 instead of none for flags removal
2019-09-01 19:18:54 -03:00
Luna e0d253f36f add message flags updating on suppress embeds 2019-09-01 18:03:29 -03:00
Luna 63ab8ea064 add messages.flags column 2019-09-01 17:31:24 -03:00
Luna cf16a14e94 Merge branch 'support/embed-links' into 'master'
Embed Links permission support

Closes #49

See merge request litecord/litecord!43
2019-07-23 19:34:42 +00:00
Luna db00724379 fix channel overwrite creation and constraints 2019-07-23 15:40:23 -03:00
Luna 103d88d8f8 remove manage.cmd.tests 2019-07-21 13:00:19 -03:00
Luna feaef1e463 webhooks: finish impl for webhook_avy_redir
- migration.command: fix apply_migration call
2019-05-02 02:03:37 -03:00
Luna 0ab3f2bfa4 add 1_webhook_avatars migration 2019-04-26 03:55:53 -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 6ba9b07381 0_base.sql: fix ordering of table creations
fixes attachments table being created BEFORE its foreign keys
2019-04-04 00:30:59 -03:00
Luna bb542550b8 migration.command: only call init_app_managers when it isnt migrate cmd 2019-04-04 00:29:50 -03:00
Luna 6ba5c6e25f 0_base.sql: formatting 2019-04-03 23:54:04 -03:00
Luna e03dada1a7 migration: some fixes here and there
- 0_base.sql: make it rerunnable by dropping hardcoded constraints
2019-04-03 23:53:06 -03:00
Luna 1617c87f03 migration: revamp everything to handle new 0_base.sql
- gitlab-ci.yml: remove schema.sql loading
2019-04-03 23:34:44 -03:00
Luna 02978542e7 remove all migrations, rename schema.sql to a 0_base.sql 2019-04-03 22:04:59 -03:00
Luna dab830066b 16_messages_webhooks.sql: fix comments
- storage: add explanation for wb_info
2019-03-18 23:00:16 -03:00
Luna 02c6741d74 webhooks: "finish" execution impl
it can do messages. but many things are still missing.

 - channel.messages: export msg_guild_text_mentions
 - storage: revamp Storage._inject_author
 - schema.sql: remove messages.webhook_id, add message_webhook_info
    table
 - add 16_messages_webhooks.sql migration
2019-03-18 22:47:59 -03:00
Luna e8c158da81 add 15_drop_nullable_webhook_avatar.sql
- webhooks: quickfix to webhook_check
2019-03-18 04:54:23 -03:00