Commit graph

583 commits

Author SHA1 Message Date
3fa8fac867
Remove forgotten platform target specifier from Startup.csproj 2021-12-27 21:55:44 +08:00
2fe8e2fa4f
Add some additional logging to highlight startup parameters 2021-12-18 17:12:10 +01:00
bdaf16f53f
Remove PlatfromTarget from the csproj files so that the project can run on arm64 2021-12-18 17:09:48 +01:00
0e5785e3a1
Rework the output of the /choose command to show all the choices that the user has entered; which are somewhat lost with / commands, as others can't see what the user entered without an additional mouseclick 2021-11-16 00:40:19 +01:00
d03525d363
Port the choose command to / commands 2021-11-14 23:44:02 +01:00
17cb5951ee
Allow Interaction Commands to run for up to 15 minutes by replying to discord immediately and handling the command in a separate thread 2021-11-14 03:39:36 +01:00
699a93200b
Port the emojify command to / commands 2021-11-14 01:18:36 +01:00
1b396a529c
Make sure that interaction commands without changes are not being patched unnecessarily 2021-11-14 01:16:50 +01:00
0f7f936492
Add explicit nullability for some fields of the Interaction Command record 2021-11-14 01:14:26 +01:00
bcc2742e81
Add retry logic for Post, Patch and Delete to the HttpAbstractions 2021-11-14 01:12:32 +01:00
5d6e5cf2ad
Make the EmojiConverter static 2021-11-13 16:26:14 +01:00
df6672305d
Downgrade Entity Framework from 6-rc2 to 5.0.12 2021-11-10 00:48:42 +01:00
c2c30846fb
Ensure the logger doesn't fail to log based on some stacktrace field during json serialization 2021-11-10 00:48:42 +01:00
e13cf9d830
Remove the single file build flag because it seems to break localization 2021-11-09 18:46:10 +01:00
09af445436
Make sure that the /v1/command endpoint actually ignores the parameter default value during json serialization if its null, instead of making it an empty string 2021-11-09 01:44:31 +01:00
4d97201319
Set parameter default value to null instead of an empty string in the bot command lookup 2021-11-09 01:25:42 +01:00
9cfac1ad38
Remove the runtime identifier from the interactions project 2021-11-09 01:25:32 +01:00
9beef55979
Read the bot commands on startup and provide them to the /v1/commands endpoint 2021-11-09 00:53:09 +01:00
4f4e16d674
Add a way to lookup all bot commands in the bot assembly without using the commandService provided by discord.net 2021-11-09 00:51:37 +01:00
ae1b28ff77
Decouple the WebApi and the Bot and move the startup code into a new project 2021-11-09 00:49:46 +01:00
ee31e66e75
Fix the datetime issue when writing to the database for !cookie and the karma commands as well 2021-11-08 00:15:25 +01:00
c9af82015b
Fix !quote, use ToUniversalTime() on the timestamp saved to the database when saving a new quote 2021-11-08 00:02:12 +01:00
7d4a81dcde
Make sure all DateTimeOffsets that are written to the DB are in UTC 2021-11-07 02:52:35 +01:00
1a1d1406ec
Ignore compiler warning CS8618 in the Commands project 2021-11-07 00:50:53 +01:00
65d84c0ba6
Move CommandPreconditions into Geekbot.Bot 2021-11-07 00:38:57 +01:00
a460041c52
Move all interaction classes to its own project 2021-11-07 00:36:20 +01:00
54cbb00880
Upgrade EntityFramework to .net6-rc2 2021-11-07 00:32:32 +01:00
d0bc5810a9
Cleanup all interaction commands for .net6 2021-11-07 00:16:11 +01:00
47299dd1de
Refactor the ASP Logger to take advantage of new .net6 features 2021-11-07 00:15:15 +01:00
e01a066920
Refactor WebApi Controllers to take advantage of new .net6 features 2021-11-07 00:08:08 +01:00
6b3a3a9ec2
Rewrite the WebApi startup to take advantage of new .net6 features 2021-11-07 00:02:26 +01:00
4395d9e9dd
Port the karma commands to / commands 2021-11-06 19:08:42 +01:00
6d39c2d33f
Add primitive GetAvatarUrl function to a resolved interaction user 2021-11-06 19:07:28 +01:00
31f12a4110
Add command type level to interaction command dictionary 2021-11-06 18:20:16 +01:00
eb648b94d9
Make Embed Types Deserializable 2021-11-06 18:18:09 +01:00
fe1063167f
Set default embed color to DimGray 2021-11-06 18:17:44 +01:00
866c28b76b
Move embed building logic for !urban into the shared command code 2021-11-06 16:53:37 +01:00
10b29cce8a
Add function to convert Geekbot Embeds to Discord.Net Embeds for easier code sharing 2021-11-06 16:52:49 +01:00
34f15402b4
Port !urban to a / command 2021-11-06 16:23:50 +01:00
ea17ce2866
Add helper classes to simplify embed creation for interactions 2021-11-06 16:17:22 +01:00
c15a66255f
Fail if a user tries to execute a non-existing command, instead of letting them know that the command doesn't exist 2021-11-05 17:46:08 +01:00
e74aeb1403
Add simple response function to the InteractionBase to reduce the InteractionResponse copying 2021-11-05 17:45:11 +01:00
5a520ff567
Pass interaction data into all InteractionBase hooks 2021-11-02 21:57:01 +01:00
01df35b12b
Capture interaction exceptions in sentry 2021-11-02 21:56:40 +01:00
44ae2eeaf6
Update sentry SDK to v3.11.0 2021-11-02 21:54:47 +01:00
8c2eabfd21
Fully remove the dependency on Newtonsoft.Json 2021-11-01 01:27:04 +01:00
cf0cd743b8
Get rid of Newtonsoft.Json everywhere but the HTTP abstractions 2021-11-01 01:04:20 +01:00
7b06965f14
Switch from Newtonsoft.Json to System.Text.Json in the logger 2021-11-01 00:34:50 +01:00
6f94de5a14
Reduce ulong to long casts in the roll command 2021-11-01 00:16:42 +01:00
616ac5e430
Use structs instead of enums for interaction option names 2021-10-31 23:50:48 +01:00