Exemplo n.º 1
0
        public SmeuService(DiscordSocketClient client, SmeuBaseFactory smeuBaseFactory, RestoreService restoreService, Settings settings)
        {
            this.client          = client;
            this.smeuBaseFactory = smeuBaseFactory;
            this.restoreService  = restoreService;
            this.settings        = settings;

            client.MessageReceived += SaveSmeuAsync;
        }
Exemplo n.º 2
0
 public CommandHandler(IServiceProvider services,
                       CommandService commands,
                       DiscordSocketClient client,
                       LogService logger,
                       Settings settings,
                       RestoreService restoreService)
 {
     this.services           = services;
     this.commands           = commands;
     this.client             = client;
     this.logger             = logger;
     this.settings           = settings;
     this.restoreService     = restoreService;
     client.MessageReceived += ReceiveMessageAsync;
 }