Commit graph

244 commits

Author SHA1 Message Date
Noi
ac1b4aec32 Shorten library exception reporting 2023-09-04 17:40:35 -07:00
Noi
cee7bb4835 Manually call GC on occasion (experimental) 2023-09-04 17:40:35 -07:00
Noi
04b68655bc Remove unnecessary LongRunning setting 2023-06-19 01:47:03 -07:00
Noi
8d92841e02
Bump version 2023-06-11 18:15:54 -07:00
Noi
3ddb5d5e78
Merge pull request #50 from NoiTheCat/dev/graceful-shutdown
Better handling of program shutdown
2023-06-11 18:13:12 -07:00
Noi
c727bead98 Better handling of program shutdown
It now knows what a SIGTERM is.
Additionally, made some small tweaks to the file's structure
and removed some unnecessary details.
2023-06-11 18:10:46 -07:00
Noi
fa8bb0abd2
Merge pull request #49 from NoiTheCat/dev/more-config
Add configurable runtime settings that were previously hardcoded
2023-06-10 20:24:55 -07:00
Noi
4d1d0b4024
Merge pull request #48 from NoiTheCat/dev/export-command
Split birthday exporting to its own command
2023-06-10 20:19:48 -07:00
Noi
952188a8cf Split birthday exporting to its own command 2023-05-27 21:54:47 -07:00
Noi
0944177897 Add option to disable connection logging
Was previously disabled by default, now enabled by default.
2023-05-27 18:46:28 -07:00
Noi
b0b39bbd0b Allow configuration of certain time-based values 2023-05-27 18:07:45 -07:00
Noi
c92350861a Update dependencies, bump version 2023-05-27 17:05:37 -07:00
Noi
7c9430fb27
Merge pull request #47 from NoiTheCat/remove-preconditions
Replace preconditions with Discord permissions
2023-05-27 17:03:56 -07:00
Noi
c0b857d46e
Merge pull request #42 from NoiTheCat/docs-rewrite
Rewrite Readme; create documentation website
2023-03-09 12:35:35 -08:00
Noi
0fe65b7e66
Merge pull request #44 from NoiTheCat/fixes/userdl-hang
Fix hanging, unnecessary disconnections when AutoUserDownload is hanging
2023-03-09 12:34:30 -08:00
Noi
c893b317f0 Fix logged message's grammar; bump version 2023-03-05 23:05:37 -08:00
Noi
29f2eeb31e Skip user download in guilds where the method hangs
A workaround for an apparent bug in Discord.Net's
`SocketGuild.DownloadUsersAsync()` method.

Conclusions made while writing and testing this workaround:
* The guilds it hangs on are seemingly random.
* Guild size does not matter.
* If a download hangs, it never recovers within 2 hours, probably more.
* Trying a guild again never works. It just hangs again.
2023-03-05 22:57:09 -08:00
Noi
1fba7ff708 stopgap fixes 2023-03-04 11:27:31 -08:00
Noi
104d99856b Prevent unnecessary disconnection when user list fetch takes too long 2023-03-02 09:58:15 -08:00
Noi
18c52650b3
Update copyright date / contact email 2023-02-19 10:19:17 -08:00
Noi
d262191d52 Replace preconditions with Discord permissions
Removed precondition code, moderator roles, unused database values.
Slightly rearranged commands.
2023-02-03 22:55:00 -08:00
Noi
1f472b9773 Add project-centric readme 2023-01-24 19:56:21 -08:00
Noi
088a465443 Update documentation site text
Similar format to World Time's page
2023-01-24 19:42:57 -08:00
Noi
20c84eb713 First commit; Jekyll-based documentation page 2023-01-23 20:26:23 -08:00
Noi
7b374833e3
Merge pull request #41 from NoiTheCat/remove-access-limits
Remove all blocking features
2023-01-21 21:55:13 -08:00
Noi
304e802c35
Merge pull request #40 from NoiTheCat/fixes/confcheck-error
Remove announcement message in /config check (fixes #29)
2023-01-16 21:58:31 -08:00
Noi
bbb640df56 Mark remaining preconditions as obsolete 2023-01-16 21:52:11 -08:00
Noi
e4f5c90aab Remove EnforceBlockingAttribute and all related logic
Users have been instructed to manually set command permissions from now on
2023-01-16 21:43:07 -08:00
Noi
61126eb84e Explicit config path in args 2023-01-16 21:28:05 -08:00
Noi
e0bb38615a Remove announcement message in /config check (fixes #29)
The message can now be seen in the modal used for editing such messages,
making this extra display redundant.
2022-12-18 21:31:55 -08:00
Noi
a5f8acb303 Rewrite notice 2022-12-18 21:09:33 -08:00
Noi
c20893bfc9
Merge pull request #39 from NoiTheCat/dependabot/nuget/Newtonsoft.Json-13.0.2
Bump Newtonsoft.Json from 13.0.1 to 13.0.2
2022-12-18 21:08:12 -08:00
Noi
c9aeb5962e Merge branch 'main' into remove-access-limits 2022-12-17 13:28:01 -08:00
dependabot[bot]
35f5c8efb0
Bump Newtonsoft.Json from 13.0.1 to 13.0.2
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/13.0.1...13.0.2)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 14:57:57 +00:00
Noi
9cb2e3250f Fix instances not starting if first shard is not 0 2022-11-23 00:23:19 -08:00
Noi
841d120015 Mark blocking as obsolete, don't accept new blocks 2022-11-23 00:02:20 -08:00
Noi
febfd27ece
Merge pull request #38 from NoiTheCat/cleanup
Code cleanup

Removes various unneeded things from code and rewrites the shard status display.
2022-11-22 23:42:27 -08:00
Noi
4f22d4b991 Merge branch 'main' into cleanup 2022-11-22 23:40:48 -08:00
Noi
c0b94dc614
Merge pull request #37 from NoiTheCat/sql-pool-experimenting
* Update to Entity Framework Core 7
* Switch to bulk updates/removals in DataRetention
* Remove connection pool configuration settings (including limits)
* Greatly reduce number of open connections existing at one time
2022-11-22 23:32:39 -08:00
Noi
a3ac5d6ede Change data types from long to ulong 2022-11-22 23:19:37 -08:00
Noi
0f8b2339ae Fix incorrect documentation 2022-11-22 20:31:07 -08:00
Noi
2c920e9794 Upgrade EFCore, switch to bulk operations 2022-11-21 21:20:48 -08:00
Noi
fbd7305818 Revert, unset pool configuration changes 2022-11-21 20:38:06 -08:00
Noi
f4d5bfecd0 Reduce shard health report complexity
A lot of these things were designed with the thought in mind that
there used to be many, many issues when running the bot on a large
number of servers. The reason for these bugs turned out to be simple:
the hardware was not fast enough to keep up with everything.

This extra reporting and these extra behaviors have not been
necessary for some time, and it is best to remove them.
2022-11-21 19:32:46 -08:00
Noi
e62a89d0a0 Use background service semaphore
Must have missed it the first time...
2022-11-21 19:17:07 -08:00
Noi
a9853021f4 Edit SQL pool config, usage 2022-11-21 10:45:46 -08:00
Noi
236c34b810
Actually bump version 2022-10-10 14:42:33 -07:00
Noi
db6c811169
Bump version, update references 2022-10-10 14:42:12 -07:00
Noi
8f451765d9
Merge pull request #30 from NoiTheCat/fixmodrole
Fix incorrect value checked for determining moderator
2022-10-10 14:40:41 -07:00
Noi
e265cafd25 Fix incorrect value checked for determining moderator
The public instance will be updated with this fix immediately.
This fixes cases in which those with moderator roles are unable
to use mod-only commands as intended.
It also fixes a dangerous bug in which users with the birthday role
assigned to them have unrestricted access to moderator commands.
2022-10-10 14:27:54 -07:00