예제 #1
0
 public ArmoryCommandContext(DiscordSocketClient _client, SocketUserMessage _msg, BlizzardAPI _api, char _prefix, ILogger <Worker> _logger)
 {
     this.Client  = _client;
     this.Guild   = (_msg.Channel as IGuildChannel)?.Guild;
     this.Channel = _msg.Channel;
     this.User    = _msg.Author;
     this.Message = _msg;
     this.API     = _api;
     this.Prefix  = _prefix;
     this.Logger  = _logger;
 }
예제 #2
0
 public ArmoryBot(ILogger <Worker> logger, ArmoryBotConfig config)
 {
     this.Logger   = logger;
     this.Config   = config;
     this.BlizzAPI = new BlizzardAPI(logger, config); // Initializes Blizzard API
 }