Commit graph

283 commits

Author SHA1 Message Date
Noi
7af571205a Framework and dependency updates 2021-10-13 20:23:50 -07:00
Noi
b0fcd19710 Replace About message; remove zone option in set command
Regarding the latter, it led to a lot of confusion whenever anyone got the command wrong.
2021-10-13 19:29:24 -07:00
Noi
665c767cea Replace Calcutta with Kolkata 2021-10-13 19:28:35 -07:00
Noi
57a870efda Additional diagnostic information 2021-10-13 19:28:00 -07:00
Noi
7971295477 Split long recent-upcoming messages 2021-07-04 10:39:50 -07:00
Noi
eb33e55aad Add support for separate shard ranges per instance
-New config values ShardRange and ShardTotal
--ShardTotal replaces ShardCount
-New config value QuitOnFails:
--Program quits after enough shards have been removed
2021-06-15 19:29:35 -07:00
Noi
88c18c4364 Fix occasional internal ObjectDisposedException when disposing 2021-06-01 21:48:26 -07:00
Noi
59afd8ce3b Move server count reporting to be handled per-shard 2021-05-30 12:00:49 -07:00
Noi
5fcf69136d Have program attempt to stop itself after 5 failures 2021-05-30 10:05:33 -07:00
Noi
57fc207bba Update version number 2021-02-03 22:33:07 -08:00
Noi
0f4b2d722c Add some aliases for help and info commands 2021-02-03 22:17:00 -08:00
Noi
69583e2270 Add more supported input formats 2021-02-03 21:55:37 -08:00
Noi
a0571ce3d7 Add some leeway regarding incomplete user cache
Implemented several workarounds to what appearto be a library bug in
which not all users will be downloaded onto the cache. User cache
checking and downloading is delegated to a new Common method and a
new BackgroundService, respectively.
This is hopefully temporary.
2021-02-01 22:48:20 -08:00
Noi
1e8b47784d Modify DataRetention behavior; simplify SQL config 2021-02-01 22:03:50 -08:00
Noi
9667820df4 Reduce background work interval 2021-02-01 22:02:29 -08:00
Noi
020e680436 Update version numbers 2020-10-29 01:26:17 -07:00
Noi
14d3e926a0 Fix null log messages being dropped 2020-10-29 00:56:46 -07:00
Noi
8e6da3c8d0 Improvements to shard disposal 2020-10-29 00:54:14 -07:00
Noi
d08fc45774 Move database initialization to program start 2020-10-29 00:53:18 -07:00
Noi
3c73be3ee7 Automatically identify and remove dead shards
- Manager loop updated to act on dead shards and initialize new ones
- Initialization of new shards is now staggered in case of many shards
- Now using intents
- Adding a delay and a second connection check when downloading guild
  members. This has greatly improved stability over the previously
  attempted method.
- No longer sends guild counts to external sites until fully connected
2020-10-29 00:44:48 -07:00
Noi
a631f55a37 Change exception type thrown by semaphore 2020-10-25 13:44:35 -07:00
Noi
b6551eec2e Modify shard reporting to be compact, informative 2020-10-24 22:43:20 -07:00
Noi
651de4e78a Configure all the awaits 2020-10-10 00:28:11 -07:00
Noi
9ef164bac1 Update DataRetention service
Renamed from StaleDataCleaner.
Modified to run only once concurrently, to not put extra load on the
database connection pool.
2020-10-09 23:57:30 -07:00
Noi
7ce04997f9 Modify background task settings
Solves an issue in which the bot lags on all input when the bot has
been fully initialized.
2020-10-08 21:56:44 -07:00
Noi
6ee0ad939e Improve comments, remove redundant code 2020-10-08 21:46:36 -07:00
Noi
6efc436717 Exception-proofing external statistics 2020-10-05 22:26:29 -07:00
Noi
0eb63c26f5 Clarify client options, add gateway intents 2020-10-05 16:51:42 -07:00
Noi
e1a4dab746 More thorough exception handling on dispose 2020-10-05 16:10:02 -07:00
Noi
2da4f3e0e3 Add missing filter, fix verbose logging not appearing 2020-10-05 16:09:14 -07:00
Noi
fc9d611ba6 Add individual SQL options 2020-10-05 16:07:34 -07:00
Noi
2f0fe8641a Implement own sharding system
The BirthdayBot class has been split up into ShardInstance and
ShardManager. Several other things have been reorganized so that shards
may act independently.

The overall goal of these changes made is to limit failures to sections
that can easily be discarded and replaced.
2020-10-04 21:40:38 -07:00
Noi
21d5c5b082 Add status update message 2020-09-25 17:25:08 -07:00
Noi
b711fec302 Update TZ information help text 2020-08-25 00:23:51 -07:00
Noi
a8624ce3ec Add name escaping for '@' 2020-08-25 00:16:29 -07:00
Noi
c77163cab3 Merge branch 'noguildcache' 2020-08-05 19:49:57 -07:00
Noi
f1e7bd8c67 Removed disconnected server count
Made redundant by per-shard status on every birthday update
2020-07-27 22:40:09 -07:00
Noi
a9e87d8021 Update intervals, increase version number 2020-07-27 22:39:01 -07:00
Noi
657181ec3e Less async birthday updates; download users on connect
From testing, it appears DownloadUsersAsync hangs forever and has other
consequences if its corresponding server is not fully connected, or is
struggling to connect. This is despite all attempts to mitigate it and
detect any disconnections shortly before attempting it.
Additionally, birthday updates are now run asynchronously per shard, but
synchronously per guild in an attempt to keep rare instances of rate
limiting under control.
2020-07-27 22:30:15 -07:00
Noi
a87426a5f6 Remove unnecessary lines 2020-07-27 22:29:35 -07:00
Noi
8f84b09b21 Reduce amount of automatic processing
These changes make the bot skip over needlessly collecting information
for guilds in which it is unnecessary, in most cases guilds that have
invited the bot but have not yet invoked any bot command.
2020-07-22 19:43:45 -07:00
Noi
73fae41ac9 Automatically add pool config to database 2020-07-22 19:42:11 -07:00
Noi
937538c0e2 Update package 2020-07-22 19:41:36 -07:00
Noi
e8ae5bb9da Increase initial processing delay 2020-07-22 17:07:30 -07:00
Noi
ffbffdd9b4 Remove async multiple updates 2020-07-22 17:06:35 -07:00
Noi
3d3db6d5e1 Update remaining handlers to not use guild cache 2020-07-22 16:58:38 -07:00
Noi
b6c201d5a5 Fix user last_seen not updating properly
Also now displays basic statistics on how many records are updated in
each pass whenever StaleDataCleaner does its work.
2020-07-19 20:54:18 -07:00
Noi
23dd15d741 Update to use GuildConfiguration; small other tweaks 2020-07-19 19:07:23 -07:00
Noi
6d7db85310 Remove unneeded property 2020-07-19 19:01:34 -07:00
Noi
581df48855 Add IsBotModerator method
Very similar to a previously existing method that was mistakenly removed.
2020-07-18 00:31:01 -07:00