Add line to show subscribing to CommandService#Log (#756)

This commit is contained in:
Joe4evr
2017-07-16 17:32:31 +02:00
committed by Christopher F
parent 0a41694f01
commit 0bdc2455bc

View File

@@ -39,6 +39,9 @@ class Program
// add the `using` at the top, and uncomment this line:
//WebSocketProvider = WS4NetProvider.Instance
});
// Subscribe the logging handler to both the client and the CommandService.
_client.Log += Logger;
_commands.Log += Logger;
}
// Example of a logging handler. This can be re-used by addons
@@ -77,9 +80,6 @@ class Program
private async Task MainAsync()
{
// Subscribe the logging handler.
_client.Log += Logger;
// Centralize the logic for commands into a seperate method.
await InitCommands();