Commit graph

592 commits

Author SHA1 Message Date
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
913ea23732
Remove OptionChoice type inheritors in favour of just supporting strings as values 2021-10-31 23:23:02 +01:00
e20faa43e1
Port rank for slash commands 2021-10-31 23:21:15 +01:00
772557978b
Set guild language when executing interaction 2021-10-31 22:33:31 +01:00
177c773451
Remove the discord socket client dependency from the webapi 2021-10-31 20:22:42 +01:00
29a2e5c4a2
Don't go into an infinite await when stopping the app if the webapi is running 2021-10-31 20:18:27 +01:00
78c139293f
Move the roll command logic into the shared commands project 2021-10-31 20:16:56 +01:00
89ea6df6e2
Move Localizations into core 2021-10-31 20:15:08 +01:00
29e22acbc0
Move the RollTimeout record to the shared commands project 2021-10-30 15:48:28 +02:00
dd941f5f94
Add new project to share command logic between gateway and slash commands 2021-10-30 15:47:54 +02:00
588c93b87d
Check the users previous roll in the /roll command 2021-10-30 14:47:56 +02:00
a1893c7414
Add DI support for interaction commands 2021-10-30 14:46:23 +02:00
24749d9009
Add and use interaction command hooks for BeforeExecute, AfterExecute, OnException and GetExceptionResponse 2021-10-30 14:43:57 +02:00
9a2bf84a05
Add applicationId/guildId mapping to the interaction registrar 2021-09-20 02:23:44 +02:00
d2b9daac57
Add roll interaction 2021-09-20 02:14:25 +02:00
d17ca4c556
Pass entire Interaction object to interaction commands, instead of just the data 2021-09-20 02:12:57 +02:00
aaea8d0540
Add user property to the interaction member object 2021-09-20 02:11:53 +02:00
d975594d21
Add mention property to the interaction user object 2021-09-20 02:11:16 +02:00
2de6381f9d
Change type of Value in InteractionOption to JsonElement because it's unknown at deserialization time what type it will be 2021-09-20 02:10:28 +02:00
65bb7f6cac
Creat initial interaction command framework 2021-09-20 01:31:24 +02:00
60547140ea
Create all interaction models 2021-09-20 01:28:26 +02:00
209887e237
Add sentry support to the webapi 2021-09-19 16:19:40 +02:00
d81fb2a3d9
Add initial interaction support 2021-09-19 16:11:06 +02:00
85d06b76e0
Add --disable-gateway parameter to the run parameters to stop the bot from connecting to discord. Useful when working on the web-api 2021-09-19 16:06:11 +02:00
447c6d8042
Remove a database call from !quote by delegating the randomness to the database. 2021-09-19 00:58:00 +02:00
1b9d8732d5
Add tracing to the !quote embed builder 2021-09-19 00:57:10 +02:00
954c6c2be3
Remove Guild ID from the tracing tags 2021-09-17 15:55:13 +02:00
3d117aebe1
Split reply and quote embed building trace apart in !quote 2021-09-17 15:12:22 +02:00
0a9099a6d2
Move Sentry Init priority between the discord connection and dependency registration 2021-09-17 14:53:24 +02:00
d16828077d
Set Transaction Status to OK by default 2021-09-17 14:33:55 +02:00
a1f8d033c2
Use the TransactionModuleBase for all commands that haven't implemented GeekbotCommandBase 2021-09-17 14:31:24 +02:00
f02c30e660
Remove the mod command class 2021-09-17 14:30:50 +02:00
833a8a0dd8
Split Transactions from the GeekbotCommandBase 2021-09-17 14:27:46 +02:00
d708525a2f
Add traces to the !quote command 2021-09-17 14:07:19 +02:00
aa826f962d
Add traces to the !roll command 2021-09-17 14:06:34 +02:00
3299ac4eab
Add generic sentry tracing to the main command module 2021-09-17 14:06:10 +02:00
1f518e980c
Move Sentry SDK init to the main init process 2021-09-17 14:04:30 +02:00
5c507b026c
Remove random.org integration 2021-09-17 14:03:35 +02:00
989057a0b0
Migrate from RavenSharp to the SentrySDK 2021-09-17 12:22:26 +02:00
f19ddb30b2
Replace RNGCryptoServiceProvider with System.Security.Cryptography.RandomNumberGenerator 2021-09-17 11:23:20 +02:00
e712403dd9
Upgrade Sumologic, jikan and HtmlAgilityPack 2021-09-17 11:21:42 +02:00
18ece35ffe
Remove System.Timers.Timer ambiguity for .net6-preview7 2021-08-11 23:08:00 +02:00