|
@@ -11,7 +11,7 @@ public class Commands |
|
|
var map = new DependencyMap(); |
|
|
var map = new DependencyMap(); |
|
|
map.Add(client); |
|
|
map.Add(client); |
|
|
map.Add(commands); |
|
|
map.Add(commands); |
|
|
await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map); |
|
|
|
|
|
|
|
|
await commands.AddModulesAsync(Assembly.GetEntryAssembly()); |
|
|
} |
|
|
} |
|
|
// In ConfigureServices, we will inject the Dependency Map with |
|
|
// In ConfigureServices, we will inject the Dependency Map with |
|
|
// all of the services our client will use. |
|
|
// all of the services our client will use. |
|
@@ -21,4 +21,4 @@ public class Commands |
|
|
map.Add(new DatabaseService(map)); |
|
|
map.Add(new DatabaseService(map)); |
|
|
} |
|
|
} |
|
|
// ... |
|
|
// ... |
|
|
} |
|
|
|
|
|
|
|
|
} |