Commit graph

33 commits

Author SHA1 Message Date
Noi
a9853021f4 Edit SQL pool config, usage 2022-11-21 10:45:46 -08: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
b9604dadfe Remove text-based commands 2022-08-29 12:22:42 -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
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
0a81f208ea Add new extension methods for retrieving data 2022-03-19 18:10:10 -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
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
6c498045b3 Update precondition logic; make methods obsolete
The current way of loading database information makes things confusing and difficult to follow, particularly with retrieving guild data and its second parameter.
A much better alternative should be considered, and accessed by means of extension methods.
2022-03-10 19:30:28 -08:00
Noi
a58cedad88 Implement config commands 2022-03-10 14:09:15 -08:00
Noi
7abe03b70d Move Data extensions to a more suitable area 2022-02-24 20:26:30 -08:00
Noi
d27663a20a Add currently completed commands 2022-02-01 21:03:16 -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
800bba2193 Add more information to check command
Additionally, fix up null checks in affected files
2021-10-24 18:15:46 -07:00
Noi
160152a0b4 Update style for data classes 2021-10-18 16:14:46 -07:00
Noi
651de4e78a Configure all the awaits 2020-10-10 00:28:11 -07:00
Noi
fc9d611ba6 Add individual SQL options 2020-10-05 16:07:34 -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
581df48855 Add IsBotModerator method
Very similar to a previously existing method that was mistakenly removed.
2020-07-18 00:31:01 -07:00
Noi
488685bc79 Rewrite GuildUserConfiguration
Corresponding to GuildConfiguration, no longer assumes it is cached.
2020-07-16 13:29:50 -07:00
Noi
f71552c46d Change Database to be a static class 2020-07-16 11:55:26 -07:00
Noi
0f05e3f0a8 Rewrite GuildConfiguration
No longer assumes it's permanently cached. When used, now requires that
any updates have its update method explicitly called.
2020-07-16 11:50:55 -07:00
Noi
aedc0f2ba7 Rename files 2020-07-16 11:50:12 -07:00
Noi
0bd9b79e50 Replace OperationStatus with test command 2020-07-14 11:59:14 -07:00
Noi
5d915f9ca0 Fix guild settings being stored incorrectly 2020-05-21 21:19:18 -07:00
Noi
0d93936bc8 Make corresponding changes from VB-based project 2020-05-19 19:15:54 -07:00
Noi
0b6f2c45a4 Add StaleDataCleaner and related changes 2020-04-10 00:20:47 -07:00
Noi
ddcde10e09 First commit for C# rewrite
All existing VB code was 'translated' to C# as closely as possible, with
minor changes and additional notes. Currently untested and likely
broken.
Further commits will go toward making overall improvements until this
version replaces the currently existing code.
2020-04-02 11:38:26 -07:00