Commit graph

40 commits

Author SHA1 Message Date
Noi
b9b057e1f1 Remove extraneous log messages
In particular, these changes filter out the reporting of any errors
occurring during the bot shutdown process.
2023-09-04 17:41:10 -07:00
Noi
ac1b4aec32 Shorten library exception reporting 2023-09-04 17:40:35 -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
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
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
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
854cd0626b Remove unneeded TODOs
A better logging implementation is no longer planned for now, as the
current method has proven to be sufficient so far. It may even continue
to be so for a while.
2022-08-31 21:13:41 -07:00
Noi
b9604dadfe Remove text-based commands 2022-08-29 12:22:42 -07:00
Noi
f59dbc0e19 Add warning for deprecated commands 2022-08-09 18:57:14 -07:00
Noi
92be9ca073 Sanity checking to command registration 2022-08-09 17:18:25 -07:00
Noi
d7bb8d5205 Cut down on log message spam 2022-07-17 11:18:28 -07:00
Noi
7ee4ff7ad1 Update log message filtering 2022-03-30 21:50:58 -07:00
Noi
4e0f23c033 Suppress obsolete warnings in deprecated code 2022-03-20 18:12:26 -07:00
Noi
c8d6a87966 Use a modal to configure announcement messages
In addition, wrote a new static class just for receiving ModalSubmitted events in case any more modals may be handled in the future
2022-03-13 21:24:17 -07:00
Noi
d700cd8ce9 Implement block check within a precondition
With more preconditions in use, command logging has been modified to also be better able to respond to users in the event of an error. As a result, the bot is now able to respond to users and notify them properly if they fail any preconditions.
2022-03-11 22:11:18 -08:00
Noi
10a88e37d0 Improve application command logging 2022-03-10 20:50:13 -08:00
Noi
a01b1113f9 Add birthday querying commands 2022-02-24 18:02:20 -08:00
Noi
b1af7922af Begin switch to Interaction Framework 2022-02-23 15:18:48 -08:00
Noi
2c9920d87f Fix registration not working in release 2022-02-08 14:55:27 -08:00
Noi
42399e423c Add certain command overrides, matching existing options available via text commands 2022-02-03 21:49:19 -08:00
Noi
b0c5ea4e3b Update command reporting format 2022-02-01 20:01:33 -08:00
Noi
f8b3f429bb Begin implementing slash commands
Set up a structure not unlike what exists for text commands in order to neatly separate subsets of commands/features into their own files.

Changed references for existing commands to "text commands" where it made sense to do so.
2022-01-30 22:26:33 -08:00
Noi
ffdb1cd0e6 Rename UserInterface to TextCommands 2022-01-30 19:53:02 -08:00
Noi
4325fdacf2 Update dependencies
Minor changes to account for dependency additions
2022-01-04 15:06:25 -08:00
Noi
578f2545f2 Various changes
-Remove webhook logging references
--Including config line. Idea is abandoned for now.
-Remove unneeded comments
-Remove diagnostic messages
--Corresponding problems were solved by moving to dedicated hardware
-Update style on all affected files
2021-12-05 18:58:10 -08:00
Noi
5e4d030467 Rework member cache downloading
Fill it quicker when immediately needed, removing the need for a request list and all relating to it in the corresponding background service.

Additionally, updated usings, style, nullables in all affected files.
2021-11-22 13:40:08 -08:00
Noi
f8350fed53 Increase threshold, no longer stagger DataRetention
This staggering was most likely the cause of a major amount of data lost recently, in which certain guilds never had their values updated.
The staggering was meant to attempt to reduce load on a server with limited capabilities, and testing shows that it runs on more capable hardware without this issue when run this way.
2021-11-22 11:49:55 -08:00
Noi
67f78e068e Edit logging message filters
Additionally, remove unneeded usings and update style and nullable in affected files
2021-11-21 13:21:42 -08:00
Noi
0c56a0859a Replace test with check command
Removes some messy code as a result of the old feature's removal.
Additionally, updated code style in ManagerCommands and fixed several nullable issues.
2021-10-22 15:41:36 -07:00
Noi
6f34fbe657 Modified all background services
-Removed a number of diagnostic messages
-Removed ConnectionStatus, connection scores, etc.
-Modified work intervals for certain background tasks
-Updated code style
2021-10-14 18:55:04 -07:00
Noi
dcb9bfdd9a Apply suggestions from code analysis 2021-10-13 20:38:52 -07:00
Noi
57a870efda Additional diagnostic information 2021-10-13 19:28:00 -07: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
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
651de4e78a Configure all the awaits 2020-10-10 00:28:11 -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
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