Commit graph

184 commits

Author SHA1 Message Date
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
cf2ec97baf Update dependencies; bump version number 2022-08-09 18:55:19 -07:00
Noi
a1302fb594 Switch logging to local time 2022-08-09 18:52:51 -07:00
Noi
261d54197d Load database config on initialization
Adapted from RegexBot.
This allows `dotnet ef` tools to make use of actual SQL credentials
rather than dummy ones.
2022-08-09 17:37:29 -07:00
Noi
92be9ca073 Sanity checking to command registration 2022-08-09 17:18:25 -07:00
Noi
31d5513c9e Reduce concurrent database operations in background services 2022-08-09 17:05:19 -07:00
Noi
1bc241577a Switch to VSCode project 2022-07-17 11:19:27 -07:00
Noi
d7bb8d5205 Cut down on log message spam 2022-07-17 11:18:28 -07:00
Noi
18de4e3b70 Fix incorrect config command reference 2022-05-25 09:09:54 -07:00
Noi
195b06ab85 Update version, dependencies 2022-05-25 08:53:05 -07:00
Noi
eb58d1473a Import updated code style from other project 2022-05-25 08:52:51 -07:00
Noi
f8251a3b71 Fix override remove not acting on correct data 2022-05-25 08:43:38 -07:00
Noi
996540b08e Upgrade packages, downgrade Discord.Net to 3.5.0
Downgrade is due to a bug that prevents non-admin access to all slash commands by default
2022-05-15 21:13:43 -07:00
Noi
0079e8040c
Update version number 2022-04-21 18:45:07 -07:00
Noi
2ae4d71e8b
Merge pull request #22 from NoiTheCat/dev/fixes
Various fixes
2022-04-21 18:41:42 -07:00
Noi
400cc4bfbd Remove rate limit auto-retry 2022-03-30 21:51:44 -07:00
Noi
7ee4ff7ad1 Update log message filtering 2022-03-30 21:50:58 -07:00
Noi
bc2553ffad Fix 'unknown error' when setting birthday without guild config
Instead it now gives a known error
2022-03-30 21:49:51 -07:00
Noi
c98b99cd62 Fix error when using check in an unconfigured guild 2022-03-30 14:42:34 -07:00
Noi
aebc63358d Check against configuring 'everyone' role 2022-03-30 13:35:56 -07:00
Noi
586c11d540
Merge pull request #21 from NoiTheCat/dev/tweaks
Various tweaks and additions
2022-03-23 12:23:58 -07:00
Noi
9200a8409d Bump up version number, update dependencies 2022-03-23 12:02:08 -07:00
Noi
5ef7505a94 Add time zone to export, implements #4 2022-03-23 11:55:14 -07:00
Noi
36526e07fc Update Readme to refer to new commands 2022-03-23 11:39:44 -07:00
Noi
5e29c091f1 Add text command removal notice 2022-03-23 11:36:20 -07:00
Noi
c0b2b9793b Add role removal limit per run 2022-03-23 11:13:55 -07:00
Noi
a8d0b4689a Use count instead of enumeration 2022-03-23 11:09:05 -07:00
Noi
8fb7ee91a3
Merge pull request #20 from NoiTheCat/dev/database-revamp
Implement Entity Framework for all database usage
2022-03-23 11:03:01 -07:00
Noi
f4daa63bc5 Various fixes
- Fixed roles still not applying in certain occasions
- Suppressed several error messages during role updates
2022-03-22 12:33:33 -07:00
Noi
014b5a601d Increase log threshold for AutoUserDownload 2022-03-22 12:32:42 -07:00
Noi
3d4add3581 Update service exception handling
I didn't find the bug...
2022-03-22 00:08:40 -07:00
Noi
021def4f88 Fix roles not updating
Accidentally rewrote a handful of things while I was at it. The changes are staying.

After a long search, I found that this issue only shows itself if the bot is in several servers, encountering a valid configuration while it has yet to look at more servers (that is, a situation my debug bot is not in). The loop had been quitting halfway through for reasons seemingly beyond any logic or comprehension.

I already had a hunch that the query I wrote earlier was needlessly complex, as one might expect considering it was written during a state of delirium. It was easy to simplify it. I hoped that would be it, but no change occurred. On the contrary, some checks I slipped in there in the meantime were *passing*.

Further and further investigation finally revealed that the exception handler for background services doesn't actually do what it's expected to do. It's been silently dropping the exceptions that EF had been throwing this whole time, telling me quite plainly what the problem was and why it was quitting at a seemingly random spot.

The fix: Turns out the query evaluates during the foreach loop, which conflicts with wanting to do additional queries within it. Throwing a ToList() somewhere in it seems to have solved it.

These last few hours were quite the adventure...
My head hurts. Now I'm off to take a look at the exception handler.
2022-03-21 23:52:36 -07:00
Noi
2a1478fb0b Add log message 2022-03-21 23:33:24 -07:00
Noi
c280904cb8 Update services to use EF queries 2022-03-21 12:12:18 -07:00
Noi
a88797cb0a Debug query logging 2022-03-20 22:33:16 -07:00
Noi
4e0f23c033 Suppress obsolete warnings in deprecated code 2022-03-20 18:12:26 -07:00
Noi
97450482d9 Switch announce message setting to EF 2022-03-20 14:10:43 -07:00
Noi
39b8436741 Merge remote-tracking branch 'origin/main' into dev/database-revamp 2022-03-20 14:01:55 -07:00
Noi
2fc8fc8272
Merge pull request #19 from NoiTheCat/dev/modal
Send a modal to configure announcement messages
2022-03-20 13:52:37 -07:00
Noi
65fbdacf58 Have precondition queries be more explicit 2022-03-20 12:40:33 -07:00
Noi
b1b7c60211 Update commands to use EF queries 2022-03-20 01:07:17 -07:00
Noi
67decd6fb4 Update preconditions to use EF queries 2022-03-19 21:09:42 -07:00
Noi
0a81f208ea Add new extension methods for retrieving data 2022-03-19 18:10:10 -07:00
Noi
f52d8c81c8 Remove incorrect use of migrations 2022-03-19 18:07:30 -07:00
Noi
b9abaa2055 Suppress null warning 2022-03-19 17:04:16 -07:00
Noi
948c6955ec Edit obsolete tags, remove soon-to-be-unneeded extension methods 2022-03-19 14:53:53 -07:00
Noi
135a554bc5 Add migrations 2022-03-19 14:51:41 -07:00
Noi
faccd9b3aa Preliminary EntityFramework support 2022-03-19 00:00:15 -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