Beispiel #1
0
 public CommandHandler(IServiceProvider provider)
 {
     _provider = provider;
     _client   = _provider.GetService <DiscordSocketClient>();
     _client.MessageReceived += ProcessCommandAsync;
     _commands = _provider.GetService <CommandService>();
     _updater  = _provider.GetService <ServerUpdater <string> >();
 }
Beispiel #2
0
 public Bot3uler()
 {
     WebConnect  = new WebConnection();
     Console     = new ServerUpdater <string>();
     GuildUpdate = new ServerUpdater <List <Guild> >();
     Client      = new DiscordSocketClient(new DiscordSocketConfig
     {
         LogLevel = LogSeverity.Verbose
     });
     Client.Log += Log;
     //client.MessageReceived += MessageInbound;
     Client.Ready += Client_Ready;
 }