Ejemplo n.º 1
0
 /// <summary>
 /// Initiailizes a new instance of the CommandHandler class
 /// </summary>
 public CommandHandler()
 {
     _commands = Service.Current.GetRequiredService <CommandService>();
     _discord  = Service.Current.GetRequiredService <DiscordSocketClient>();
     _roasts   = Service.Current.GetRequiredService <RoastService>();
     _discord.MessageReceived += MessageReceivedAsync;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the CommandHandler class
 /// </summary>
 public CommandHandler()
 {
     _commands = Service.Current.GetRequiredService <CommandService>();
     _discord  = Service.Current.GetRequiredService <DiscordSocketClient>();
     _roasts   = Service.Current.GetRequiredService <RoastService>();
     _audio    = Service.Current.GetRequiredService <AudioService>();
     _discord.MessageReceived       += MessageReceivedAsync;
     _discord.UserVoiceStateUpdated += UserVoiceStateUpdatedAsync;
     _discord.GuildMemberUpdated    += GuildMemberUpdatedAsync;
 }