You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dependency_map_setup.cs 527 B

12345678910111213141516171819
  1. using Discord;
  2. using Discord.Commands;
  3. using Discord.WebSocket;
  4. using foxboat.Services;
  5. public class Commands
  6. {
  7. public async Task Install(DiscordSocketClient client)
  8. {
  9. // Here, we will inject the Dependency Map with
  10. // all of the services our client will use.
  11. _map.Add(client);
  12. _map.Add(commands);
  13. _map.Add(new NotificationService(_map));
  14. _map.Add(new DatabaseService(_map));
  15. // ...
  16. await _commands.AddModulesAsync(Assembly.GetEntryAssembly());
  17. }
  18. }