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:
parent
f7908c2a0c
commit
83dc2c8e49
8 changed files with 488 additions and 381 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue