mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-06 05:56:29 +03:00
Split error logging events into separate files (#51)
This PR splits `LoggingPreparationErrorEvent` and `ErrorLoggingPostExecutionEvent` classes into separate files and puts these files in a separate namespace: `Boyfriend.Commands.Events`. This makes these classes easier to find and distinguish from commands groups. Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
f97e99d82b
commit
c825848d7e
3 changed files with 42 additions and 33 deletions
|
@ -1,4 +1,5 @@
|
|||
using Boyfriend.Commands;
|
||||
using Boyfriend.Commands.Events;
|
||||
using Boyfriend.Services;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
@ -71,7 +72,7 @@ public class Boyfriend {
|
|||
.AddInteractivity()
|
||||
.AddInteractionGroup<InteractionResponders>()
|
||||
// Slash command event handlers
|
||||
.AddPreparationErrorEvent<ErrorLoggingPreparationErrorEvent>()
|
||||
.AddPreparationErrorEvent<LoggingPreparationErrorEvent>()
|
||||
.AddPostExecutionEvent<ErrorLoggingPostExecutionEvent>()
|
||||
// Services
|
||||
.AddSingleton<GuildDataService>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue