|
@@ -21,7 +21,6 @@ namespace _02_commands_framework.Services |
|
|
_services = services; |
|
|
_services = services; |
|
|
|
|
|
|
|
|
_commands.CommandExecuted += CommandExecutedAsync; |
|
|
_commands.CommandExecuted += CommandExecutedAsync; |
|
|
_commands.Log += LogAsync; |
|
|
|
|
|
_discord.MessageReceived += MessageReceivedAsync; |
|
|
_discord.MessageReceived += MessageReceivedAsync; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -57,12 +56,5 @@ namespace _02_commands_framework.Services |
|
|
// the command failed, let's notify the user that something happened. |
|
|
// the command failed, let's notify the user that something happened. |
|
|
await context.Channel.SendMessageAsync($"error: {result.ToString()}"); |
|
|
await context.Channel.SendMessageAsync($"error: {result.ToString()}"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Task LogAsync(LogMessage log) |
|
|
|
|
|
{ |
|
|
|
|
|
Console.WriteLine(log.ToString()); |
|
|
|
|
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |