예제 #1
0
파일: ReplyHandler.cs 프로젝트: Gohla/Veda
        public ReplyHandler(Bot bot, BotData data)
        {
            _bot = bot;
            _data = data;

            _moreMessagesReservedLength = MoreMessages(_data.MaxMores).Length;
        }
예제 #2
0
파일: Bot.cs 프로젝트: 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);
        }
예제 #3
0
 public MessageHandler(Bot bot, ReplyHandler replyHandler, BotData data)
 {
     _bot = bot;
     _replyHandler = replyHandler;
     _data = data;
 }