public ReplyHandler(Bot bot, BotData data) { _bot = bot; _data = data; _moreMessagesReservedLength = MoreMessages(_data.MaxMores).Length; }
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); }
public MessageHandler(Bot bot, ReplyHandler replyHandler, BotData data) { _bot = bot; _replyHandler = replyHandler; _data = data; }