示例#1
0
        public MessageProcessor(IOptions <DiscordOptions> options, IDiscordClientManager clientManager, ICommandManager commandManager, IServerManager serverManager)
        {
            _clientManager  = clientManager;
            _commandManager = commandManager;
            _serverManager  = serverManager;

            _defaultPrefix = options.Value.DefaultPrefix ?? "?";
        }
示例#2
0
 public DiscordListenerHostedService(IDiscordClientManager clientManager, IMessageProcessor messageProcessor)
 {
     _clientManager    = clientManager;
     _messageProcessor = messageProcessor;
 }