Commit graph

192 commits

Author SHA1 Message Date
alyssa
4a947c01fc fix: cast hid parameter to char(6) in GetMemberByHid query
Some checks failed
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
avoids casting the hid column, which does a full table scan, which is slow
2026-01-17 17:08:55 -05:00
alyssa
47c5990218 chore: move migrations to rust
also adds some basic test seed data
2025-07-24 01:36:04 +00:00
alyssa
497bee9487 fix: move old command_messages table in migration 52 2025-07-14 13:10:33 +00:00
alyssa
a81841f9f5 fix: remove "concurrently" from migration 2025-06-21 21:31:47 +00:00
alyssa
f8b5e56fdc fix: add missing migration 2025-06-21 21:14:23 +00:00
alyssa
6fea94f990 feat(api): try harder at checking whether user is in guild 2025-06-15 21:10:57 +00:00
alyssa
539fc82342 feat(bot): lookup command messages 2025-06-15 21:10:57 +00:00
Iris System
b88c1b7712 feat(bot): server config toggle for @silent proxied messages 2024-12-30 04:33:17 +00:00
alyssa
2d564535af chore: update to .net 8 2024-12-24 02:43:41 +00:00
Petal Ladenson
6043d31b08
feat: alternate proxy switch mode "add" (#702)
* feat: alternate proxy switch mode "add"

* docs: add proxy switch add to docs

* chore: change default alias to proxy switch new from proxy switch on
2024-12-05 18:24:20 -07:00
rladenson
ec6cbb2a64 feat: guild-specific name format 2024-12-05 17:26:59 -07:00
Iris System
2555f7922c fix(bot): use proxy name format even when tag is disabled/null 2024-11-12 22:05:16 +13:00
Iris System
b26ca69071 fix(bot): make tag enforcement check name formatting 2024-11-12 21:21:12 +13:00
Iris System
0473bd8f01 feat(bot): add new guild settings command 2024-11-10 15:47:43 +13:00
libglfw
614131265b feat(bot): basic webhook username templating 2024-11-09 16:32:05 -08:00
alyssa
87196e3297 fix: correct number in migration 46 (merge issue) 2024-11-10 04:29:06 +09:00
Petal Ladenson
cbc5a34dae
feat(bot): separate banner privacy from description privacy 2024-11-10 03:44:48 +09:00
Petal Ladenson
e1c2e6b6d6
feat(bot): add option to log a switch when proxying 2024-11-10 03:34:06 +09:00
alyssa
a47cb8e708 fix: reorder return values of message_context 2024-11-07 09:26:49 +09:00
alyssa
47f1717c20 fix: typo 2024-11-07 09:20:15 +09:00
alyssa
f65c20f31e chore: clean up message_context function
remove CTEs that were confusing and led to developer error
2024-11-07 04:54:37 +09:00
Iris System
b2322c6366 fix(bot): properly resolve account in DB message context function 2024-11-06 19:38:26 +13:00
Iris System
2dfb851246 feat: add abuse handling 2024-11-05 11:19:52 +13:00
Petal Ladenson
ab7a693532
fix: name privacy while searching inconsistent with other name privacy (#681) 2024-10-07 19:16:39 +13:00
Petal Ladenson
5f644ab17a
fix(bot): respect member/group name/desc privacy in search 2024-10-05 01:49:10 +09:00
Jake Fulmine
87d027f2d4
tweak: use global list formatting for member group lists (#628)
* tweak: use global list formatting for member group lists

* fix: use DisplayHid
2024-10-01 08:56:38 -04:00
alyssa
1f11dbf269 fix(bot): clean up hid padding code 2024-06-04 18:56:28 +09:00
alyssa
6d49961daf feat(bot): config setting to pad 5-character ids in lists 2024-05-19 21:31:26 +09:00
Iris System
8f3fa62ec3 fix: handle padded hids for GroupMember 2024-05-11 21:05:16 +12:00
Iris System
c0b96daa8d fix: re-add drop for old system_fronters view
831b6d3301 removed the view, and this line in
the cleanup SQL.

The DB migration for 6-char IDs fails to apply if this view exists - so even
though the view itself no longer exists in the code, we should always drop
it on cleanup.
2024-05-11 20:07:01 +12:00
Iris System
1ce9227b7d feat(bot): add option for hid capitalization 2024-05-11 20:07:01 +12:00
Iris System
9f56697241 feat: initial 6-character HID rework 2024-05-11 20:07:01 +12:00
Iris System
95b027d432 fix: read stat counts from db as long (oopsie) 2023-09-04 10:13:33 +12:00
Iris System
4e8141007f fix: store stat counts as bigint 2023-09-03 20:50:28 +12:00
Iris System
93d94dbc2c chore: dotnet format
merging like 6 PRs at once is painful :)
2023-08-10 18:35:01 +12:00
Jake Fulmine
22ce250b56 feat: per-server keepproxy toggling (#574)
Merges PluralKit/PluralKit#574
2023-08-10 18:31:11 +12:00
rladenson
deeb3ad3a4 fix: add constraints for system name and avatar privacy (#579)
Merges PluralKit/PluralKit#579
2023-08-10 18:30:48 +12:00
rladenson
e58b3c7274 feat: add text-to-speech option to members (#570)
Merges PluralKit/PluralKit#570
2023-08-10 18:30:37 +12:00
rladenson
68cd21fb2f feat: proxy tag privacy (#571)
Merges PluralKit/PluralKit#571
2023-08-10 18:30:21 +12:00
rladenson
3045c5e307 feat(bot): add system guild icon & guild name (#554) 2023-07-19 12:49:00 +12:00
Iris System
66544b9d40 fix(bot): make proxy/log blacklists work properly with threads
Handling of both blacklists was inconsistent when dealing with threads:
- proxy blacklist of root channel blacklists all threads
- log blacklist of root channel _did not apply_ to threads
- couldn't proxy blacklist threads while leaving root channel proxyable

This change fixes the inconsistencies:
- proxy _and_ log blacklist of root channel affects all threads
- now able to individually proxy/log blacklist threads, with root
  channel unaffected
2023-05-10 13:16:16 +12:00
Jake Fulmine
8187aa05b7
feat(bot): add proxy error config (#544) 2023-03-26 11:42:47 +13:00
the iris system
ccb89f50e9
feat(bot): allow separate member avatars for proxied messages (#523)
This allows for using one avatar for the member card, and a different
avatar for proxied messages - so that users can set the main avatar to
a "full" version of their avatar, and the "proxy" avatar to a cropped
version.
2023-03-02 06:11:35 +13:00
spiral
0a58c9a9ed fix: re-enable deleting messages from db (but correctly this time) 2023-02-06 19:31:37 -05:00
spiral
b13659817d fix(bot): try fetching messages from database before deleting 2023-01-15 17:34:40 +00:00
spiral
e11f4f23ab
chore: remove dead code in DatabaseViewsExt 2022-12-29 00:53:13 +00:00
spiral
91f5e7c8f6
fix(bot): quick fix for timescaledb issues 2022-12-15 01:40:37 +00:00
spiral
a70b6f31fc
chore: lint 2022-12-14 14:47:48 +00:00
spiral
24db9f28c2
fix(bot): add callback to update message count after proxying
also re-add -with-last-message flag :D
2022-12-10 16:50:22 +00:00
spiral
b2e4ff38e3
feat: use sqlkata for a few more queries 2022-12-03 12:04:12 +00:00