Commit graph

193 commits

Author SHA1 Message Date
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
Noi
adf9485b7a
Merge pull request #27 from NoiTheCat/fixchannelparam
Fix incorrect summary field on parameter
2022-09-20 15:23:17 -07:00
Noi
21785acfb1
Merge pull request #28 from NoiTheCat/fixvanishingtz
Fix time zone unset when updating birthday (#26)
2022-09-20 15:23:08 -07:00
Noi
1f6772d18a Fix time zone unset when updating birthday (#26) 2022-09-16 21:48:46 -07:00
Noi
d99919e841 Fix incorrect summary field on parameter 2022-09-03 18:13:35 -07:00
Noi
3729474525 Update dependencies, bump version 2022-08-31 20:08:51 -07:00
Noi
e0d68b01b9
Remove text-based commands 2022-08-30 18:38:22 -07:00
Noi
b9604dadfe Remove text-based commands 2022-08-29 12:22:42 -07:00
Noi
619c7a8f7f
Merge pull request #23 from NoiTheCat/dev
Various updates
2022-08-09 19:06:30 -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