Commit Graph
100 Commits
Author SHA1 Message Date
Ske 58cdb04ab9 Practice better disposal hygiene 2019-12-23 01:58:10 +01:00
Ske 3fdfaeab01 Disable message attachments as a temporary fix 2019-12-23 01:53:01 +01:00
Ske 265184f4f6 Couple tweaks to potentially improve performance 2019-12-23 01:49:21 +01:00
Ske bbbbb5a046 Fix error on empty message 2019-12-23 01:49:00 +01:00
Ske 0ae2cb36f5 Exclude in-dir archives/backups from the Docker context 2019-12-23 01:45:40 +01:00
Ske affb42160a Oops pt. 3 2019-12-23 00:35:42 +01:00
Ske de75752b5e Oops pt. 2 2019-12-23 00:35:25 +01:00
Ske 4a8dd7e8e3 Oops 2019-12-23 00:31:31 +01:00
Ske b4ad1e5041 Use asynchronous logging 2019-12-23 00:29:30 +01:00
Ske 05282fd167 Reuse a singleton HttpClient for proxying 2019-12-23 00:29:04 +01:00
Ske c70556f5f9 Increase minimum thread pool size 2019-12-23 00:28:19 +01:00
Ske b6597c79d6 Add temporary ThreadPool trace logging 2019-12-22 23:27:11 +01:00
Ske 3c95f35553 Reduce timeouts on webhook invocations 2019-12-22 22:56:18 +01:00
Ske cb836d5f7e Remove the ping reaction afterwards 2019-12-22 14:44:14 +01:00
Ske 7bccaab20d Fix stat number displays 2019-12-22 14:37:55 +01:00
Ske 3b5ca3d62e Properly reset stat message content 2019-12-22 14:35:18 +01:00
Ske d2205ea7e6 Update documentation with new features 2019-12-22 14:26:53 +01:00
Ske 639c813ce7 Add per-server per-system proxy enable toggle 2019-12-22 14:15:56 +01:00
Ske 857b0488b9 Add member pinging by reaction 2019-12-22 13:54:18 +01:00
Ske bd8fb40bc7 Handle systems with (too) many linked accounts 2019-12-22 13:53:38 +01:00
Ske ebc688ae54 Add original message ID to API response 2019-12-22 12:54:37 +01:00
Ske 992a37dd1b Lower logging level of proxy cache messages 2019-12-22 12:50:56 +01:00
Ske b81eda47aa Expand pk;stats functionality 2019-12-22 12:50:47 +01:00
Ske 93a52ff95a Add exception logging for dropped connections 2019-12-22 12:08:52 +01:00
Ske 6a55555e48 Attempt a few memory/connection optimizations 2019-12-22 01:08:14 +01:00
Ske 5881f2a6cd Upgrade GitHub Actions .NET version (for real this time) 2019-12-22 00:56:22 +01:00
Ske ba28d8ebda Upgrade GitHub Actions .NET version 2019-12-22 00:55:08 +01:00
Ske d711482239 Don't expose API port to the outside world 2019-12-22 00:42:06 +01:00
Ske d4c1a6b1fc Add beginnings of new export/data system 2019-12-22 00:41:53 +01:00
Ske 9c9e48a799 Upgrade to .NET Core 3.1 2019-12-22 00:40:57 +01:00
Ske 7b55abaacd Properly register command statistics 2019-12-21 21:51:41 +01:00
Ske 5fc654b758 Add index to message table to speed up count querying 2019-12-21 21:42:34 +01:00
Ske 3b72fa720b Add warning when setting proxy tags conflicting with another member's 2019-12-21 21:42:06 +01:00
Ske d42dea9e9f Allow multiple proxy attachments 2019-12-21 20:07:51 +01:00
Ske 474d561c54 Execute webhooks directly rather than through D.NET 2019-12-21 18:50:28 +01:00
Ske 530e3aa697 Fix null normalising utility 2019-12-02 16:56:35 +01:00
Ske 55f77df39e Fix bounds checks and normalise nulls in API 2019-12-02 16:49:39 +01:00
Ske 7db55a3992 Update API documentation examples to align with updated schema 2019-11-03 19:20:41 +01:00
Ske d6edbe8e8d Fix PATCHing members with one-sided proxy tags 2019-11-03 19:16:06 +01:00
Ske 378cba09e5 Add channel blacklists for logging and proxying
Necessary database migrations for this commit:
    alter table servers add column log_blacklist bigint[] not null default array[]::bigint[];
    alter table servers add column blacklist bigint[] not null default array[]::bigint[];
2019-11-03 19:15:50 +01:00
Ske 0cdd99d195 Error when given an invalid image file 2019-11-03 13:56:05 +01:00
Ske 8d003da091 Remove chunk of commented-out outdated code 2019-11-03 13:37:48 +01:00
Ske 03dd91ee9e Update tag change message with more information 2019-11-03 13:37:36 +01:00
Ske 520e6f140c Fix front history lookup with very long switches 2019-11-03 00:46:38 +01:00
Ske 0226e73d88 Improve in-bot command documentation
Adds command descriptions, changes formatting on
command listings, and adds more direct command
listing commands.
2019-11-03 00:29:11 +01:00
Ske 53124776d4 Fix proxy tag field default type in schema 2019-11-02 23:38:25 +01:00
Ske 7c3b4b9af9 Add command to delete all switches 2019-11-02 22:46:51 +01:00
Ske 1e1f2acdc3 Document latest API changes 2019-11-02 22:37:56 +01:00
Ske f259beae90 Fix importing members with no proxy tags 2019-11-02 20:45:47 +01:00
Ske 6aa72f68b3 Add syntax error if pk;m proxy is missing arguments 2019-11-02 02:57:55 +01:00
Ske 6c39b7549b Fix message querying actually for real 2019-10-31 21:14:01 +01:00
Ske 0f48c6879b Attempt to fix slow/timeout-y bot startup
I've noticed the bot's CPU spiking for a few minutes as it's
just connecting, and a lot of shard connections are timing out.

I suspect it might be the overload of messages as the shards
connect and Discord sends it the entire backlog at once. So,
as an interim solution, I'm making it simply discard every
message before the socket is fully connected. Hopefully this
should help reduce the pressure.
2019-10-31 17:21:12 +01:00
Ske f4a5b409c3 Fix message querying for real this time 2019-10-31 16:36:33 +01:00
Ske 1a79d52bfb Add importing of Tupperbox multibrackets 2019-10-30 14:11:24 +01:00
Ske 9211ce0e7f Add documentation for keepproxy feature 2019-10-30 13:59:22 +01:00
Ske 49dc25ee02 Allow keeping proxy tags when proxying messages.
Required database migration:

Closes #75.
2019-10-30 09:26:50 +01:00
Ske 8604d25ffe Fix legacy prefix/suffix API fields 2019-10-30 09:19:49 +01:00
Ske 5d63181cac Fix exporting 2019-10-30 09:09:09 +01:00
Ske acadad2a43 Add forgotten conditional to proxy tag clear disclaimer 2019-10-30 08:44:17 +01:00
Ske b50c123ad4 Properly sort proxies before matching 2019-10-30 08:30:58 +01:00
SkeandAstrid 393ee16c1b Add support for multiple proxy tags
Tangentially closes #103.
2019-10-30 08:18:59 +01:00
Ske 8f60377d63 Add support for iOS-style quotation marks 2019-10-28 20:17:20 +01:00
Ske 3c7afbfdaa Lower log level of an unnecessary webhook logging message 2019-10-28 17:03:16 +01:00
Ske c639e9ba1e Include attachment image in message card 2019-10-28 17:02:59 +01:00
Ske 3369a06c4e Fix message querying on accounts with no roles 2019-10-28 16:50:41 +01:00
Ske bfafdbe2bf Invalidate proxy cache when clearing proxy tags 2019-10-28 00:38:06 +01:00
Ske 545e8df6a7 Reduce the log level of various common events 2019-10-27 23:44:27 +01:00
Ske 823688e63d Add pk;flash command 2019-10-27 23:03:20 +01:00
Ske fbb5dbbf5d Don't embed support server link in error message 2019-10-27 23:01:38 +01:00
Ske 46672d264c Refactor log channel storage 2019-10-27 23:01:20 +01:00
Ske 4e98a51363 Fix PermCheck permissions and no-guild invocation syntax 2019-10-27 21:58:04 +01:00
Ske 523469e5e6 Remove preemptive warning messages for unproxyable members
The member length limit is now long enough that it's unlikely to
hit the cap by accident. An error will still be displayed if you
attempt to perform a message proxy.
2019-10-27 21:57:31 +01:00
Ske c8b4d186d8 Prioritize member lookup by name over ID 2019-10-27 20:48:48 +01:00
Ske b19b2fbb38 Fix matching multiple consecutive quoted strings 2019-10-27 17:09:15 +01:00
Ske 7f55fca625 Make prefix matching case-insensitive 2019-10-27 15:08:33 +01:00
Ske e6e1ab023a Fix type mismatch on system export 2019-10-27 14:49:46 +01:00
Ske d4eae405c0 Pin to PostgreSQL 11 for the time bring 2019-10-27 13:16:00 +01:00
Ske 6538c5d054 Fix line endings in WebhookCacheService 2019-10-27 13:09:07 +01:00
Ske aed38f37f7 Allow starting bot before all shards are up 2019-10-27 13:01:33 +01:00
AstridandGitHub eb62602fbb Run GH Actions check on PR 2019-10-27 12:35:13 +01:00
Ske bb939697d8 Add myself to FUNDING.yml 2019-10-26 19:47:58 +02:00
Ske 295f9f8abc Remove deprecated Web solution 2019-10-26 19:47:11 +02:00
Ske 6a73b3bdd6 Refactor data stores, merging the Store classes 2019-10-26 19:45:44 +02:00
AstridandGitHub 1ab84b54dd Update dotnetcore.yml 2019-10-26 15:18:42 +02:00
AstridandGitHub 029eed3786 Merge pull request #134 from nephanim/feature/member-limit
Add members per system cap & improve import performance
2019-10-22 19:33:30 +02:00
Ske 53ae0e3d70 Improve error handling and reporting after command rewrite 2019-10-22 19:31:40 +02:00
Ske 284e8eb95a Include underscore properly in display_name API docs 2019-10-18 13:38:25 +02:00
AstridandGitHub 6db4106519 Merge pull request #121 from greysdawn/patch-2
Edit API to include member display names
2019-10-18 13:37:16 +02:00
AstridandGitHub af4da8fd72 Merge branch 'master' into patch-2 2019-10-18 13:37:09 +02:00
Ske 4ce4efcc61 Fix importing brackets from Tupperbox. Closes #123 2019-10-18 13:34:54 +02:00
Ske c4d28f64c7 Display system/member created date in embed footer.
Closes #122.
2019-10-18 13:29:16 +02:00
AstridandGitHub 1d7a4d78db Merge pull request #126 from xBelladonna/feature/messagecard-nickname
Display guild user nickname on message card if set
2019-10-18 13:22:48 +02:00
AstridandGitHub bf13c55266 Merge pull request #133 from nephanim/perf/export
Improve export performance
2019-10-18 13:22:33 +02:00
AstridandGitHub e91ecebb39 Merge branch 'master' into perf/export 2019-10-18 13:21:19 +02:00
AstridandGitHub 49adcd680a Merge pull request #132 from nephanim/perf/frontpercent
Improve frontpercent performance
2019-10-18 13:20:43 +02:00
AstridandGitHub bca296533b Merge pull request #130 from nephanim/feature/import-switches
Export/import displaynames and switches
2019-10-18 13:20:34 +02:00
Ske 49dede7ff8 Remove compiler warning from API 2019-10-18 13:19:17 +02:00
Ske 83c709b69d Sanitize more inputs 2019-10-18 13:14:36 +02:00
Ske 1988b29fbc Refactor command system 2019-10-05 07:41:00 +02:00
Ske 0ec522ca0a Display member roles in message query card 2019-09-21 15:19:38 +02:00