Attempt to improve code quality with a fearless refactor

- Completely refactor Program.cs
- Split Handlers into separate files
- Split up the command handler into multiple functions
This commit is contained in:
runebaas 2020-06-19 03:34:37 +02:00
parent f7908c2a0c
commit 83dc2c8e49
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
8 changed files with 488 additions and 381 deletions

View file

@ -11,7 +11,7 @@ namespace Geekbot.net.Lib.Logger
{
Message = new MessageDto.MessageContent
{
Content = context.Message.Content,
Content = context.Message.Content, // Only when an error occurs, including for diagnostic reason
Id = context.Message.Id.ToString(),
Attachments = context.Message.Attachments.Count,
ChannelMentions = context.Message.MentionedChannelIds.Count,
@ -42,7 +42,6 @@ namespace Geekbot.net.Lib.Logger
{
Message = new MessageDto.MessageContent
{
Content = message.Content,
Id = message.Id.ToString(),
Attachments = message.Attachments.Count,
ChannelMentions = message.MentionedChannels.Count,