Exemplo n.º 1
0
Arquivo: Bot.cs Projeto: Gohla/Veda
        public Bot(IClient client, IStorageManager storage, ICommandManager command, IPluginManager plugin,
            IAuthenticationManager authentication, IPermissionManager permission)
        {
            _client = client;
            _storage = storage;
            _command = command;
            _plugin = plugin;
            _authentication = authentication;
            _permission = permission;

            _data = storage.Global().GetOrCreate<BotData>(_storageIdentifier);

            _replyHandler = new ReplyHandler(this, _data);
            _messsageHandler = new MessageHandler(this, _replyHandler, _data);
        }
Exemplo n.º 2
0
 public MessageHandler(Bot bot, ReplyHandler replyHandler, BotData data)
 {
     _bot = bot;
     _replyHandler = replyHandler;
     _data = data;
 }